News for hackers. Stuff that matters.
Re:Nim version 2.0.0 release candidate by Symmetry on Wednesday December 21, 2022 @07:33PM (#34088244)
I've come to increasingly accept it over time? I mean, I'd really like it if my_function() and myFunction() just weren't allowed in the same section of code but if you allow the user to have both it's probably better that they refer to the same function than different functions.
Re:Nim version 2.0.0 release candidate by tryptophan on Wednesday December 21, 2022 @08:35PM (#34088656)
It is a strange feature but it does have a good underlying idea.

Why would having two functions, named makeFile and make_file in the same program ever be a good idea?

Think of it as less of a language syntax feature and more of a code style enforcement paradigm.

Good lsp support makes it mostly fine imo.

Re:Nim version 2.0.0 release candidate by isofruit on Thursday December 22, 2022 @02:51AM (#34090907)
Imo it goes beyond that. You have folks from Java etc. coming over with their camel-case as well as python folks with snake-case. Now despite both of them writing in their own styles, their code can interact, because when the java-programmer gives you a `validateObject` procedure from their package, the python developer can just use it as `validate_object`.

Not being forced into other people's style choices is a really nice boon to me.

Re:Nim version 2.0.0 release candidate by thom on Wednesday December 21, 2022 @08:47PM (#34088728)
It's not so much that anybody thinks that mix is a good idea, but it's just what happens immediately in any C/C++ codebase if you're using any nontrivial combination of libraries at all. The feature is about providing consistency, not ignoring it.
Re:Nim version 2.0.0 release candidate by v3ss0n on Thursday December 22, 2022 @01:19AM (#34090413)
My_function vs myFunction Is fine but do_me vs dome start to differ and do_me vs d_ome vs dom_e start to make things very much different.

That's the real problem

Re:Nim version 2.0.0 release candidate by xigoi on Thursday December 22, 2022 @05:34AM (#34091956)
Rarely a problem. Why would you have two procedures named do_me and dome with the exact same signature?
Re:Nim version 2.0.0 release candidate by int_19h on Sunday December 25, 2022 @09:49PM (#34134020)
Because the other procedure does something with some dome?
Re:Nim version 2.0.0 release candidate by xigoi on Monday December 26, 2022 @02:33AM (#34135567)
Then is should be named doSomethingWithDome.