Re:Nim: Scripting Ease in a Compiled Language
by narimiran on Wednesday October 30, 2019 @03:06AM
(#21395252)
> In many languages, you might use one for a type name, the other for a variable.
And Nim is one of those languages too. This is perfectly valid and frequently used:
type
Person = object
name: string
age: int
let person = Person(name: "you", age: 99)
echo person
You can try it in Nim Playground: https://play.nim-lang.org/#ix=20jS
Re:Nim: Scripting Ease in a Compiled Language
by blueprint on Tuesday October 29, 2019 @11:06PM
(#21394337)
On the other hand, what if it's a code UI limitation? Suppose the UI for writing Nim had support for linking, editing, viewing all such alternately spelled but equivalent symbols?
Re:Nim: Scripting Ease in a Compiled Language
by SamReidHughes on Tuesday October 29, 2019 @11:25PM
(#21394435)
There are tools that aren't nim-specific, like ack/grep/sed/git, and code review tools, which suffer as a result.
You could ban using the same identifier with different cases, instead of treating them the same.