Skip to content
#

programming-language

Here are 3,881 public repositories matching this topic...

julia
eschnett
eschnett commented Mar 16, 2021

When I forget a multiplication sign * between two parentheses, I receive this error:

julia> (1/2)(3+4)
ERROR: MethodError: objects of type Float64 are not callable

This error is confusing for beginners. (A colleague was just stuck with that error and asked for help.) Could you add "Maybe you forgot a multiplication operator * after a number?" to it?

Red is a next-generation programming language strongly inspired by Rebol, but with a broader field of usage thanks to its native-code compiler, from system programming to high-level scripting and cross-platform reactive GUI, while providing modern support for concurrency, all in a zero-install, zero-config, single 1MB file!

  • Updated Mar 21, 2021
  • Red
pchiusano
pchiusano commented Mar 16, 2021

This comes up when rearranging or deleting elements of a list. I can't see any reason not to just allow ignored optional commas. The current UX is you get an annoying or cryptic parse error. Once the code gets added to the codebase, it will get nicely formatted with the proper number of commas but it's okay to have some sloppiness at parse time.

You can check out Parser.seq in Parser.hs whi

精心收集并分类整理的Swift开发学习资源,包括Apple官方提供的示例代码和文档,以及github上的项目和国内外开发者的技术博客。欢迎提交pull-request一起维护。https://t.me/SwiftCN QQ交流群 32958950 申请请注明开发经验

  • Updated Feb 3, 2021
  • Swift

Improve this page

Add a description, image, and links to the programming-language topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the programming-language topic, visit your repo's landing page and select "manage topics."

Learn more