Copper: A statically-typed, loose syntax programming language
1–10 of 32 posts
Re: Copper: A statically-typed, loose syntax programming language
#2Re: Copper: A statically-typed, loose syntax programming language
#3Re: Copper: A statically-typed, loose syntax programming language
#4GitHub doesn't recognize this enough to summarize it, and that last paragraph seems weird to me; is this a customized license of one that I might recognize? https://github.com/chronologicaldot/CopperLang/blob/master/l...
So, it can be used and incorporated freely, but it also says "YOU ARE NOT GRANTED LEGAL AUTHORITY OVER THE USAGE, PROTECTION, AND DISTRIBUTION OF THIS SOFTWARE." so you don't have legal authority over its usage. IANAL, but that seems to limit one's own authority over one's own work based on this software. It's very confusing.
Re: Copper: A statically-typed, loose syntax programming language
#5GitHub doesn't recognize this enough to summarize it, and that last paragraph seems weird to me; is this a customized license of one that I might recognize? https://github.com/chronologicaldot/CopperLang/blob/master/l...
The license seems self-contradictory. On one hand it says "THIS SOFTWARE MAY BE USED, MODIFIED, REDISTRIBUTED, DECOMPILED, DISASSEMBLED, REVERSE-ENGINEERED AND INCORPORATED INTO OTHER WORKS FREELY" So, it can be used and incorporated freely, but it also says "YOU ARE NOT GRANTED LEGAL AUTHORITY OVER THE USAGE, PROTECTION, AND DISTRIBUTION OF THIS SOFTWARE." so you don't have legal authority over its usage. IANAL, but…
Re: Copper: A statically-typed, loose syntax programming language
#6I wonder what "loose syntax" is supposed to mean here. No semicolons at the ends of lines? OK. Optional commas between function arguments? Hum. But at the same time this seems to require colons after... what exactly? Variable read accesses in argument lists? Unintuitive and not exactly "loose".
Re: Copper: A statically-typed, loose syntax programming language
#7I wonder what "loose syntax" is supposed to mean here. No semicolons at the ends of lines? OK. Optional commas between function arguments? Hum. But at the same time this seems to require colons after... what exactly? Variable read accesses in argument lists? Unintuitive and not exactly "loose".
No semicolons are ever required. It is loose syntax in that most anything, including this paragraph, is valid and readable code
For example, taking this line from the first example:
this.peek = +(this.a: this.b:)
If I replace this by: this.peek = +(this.a: this.b:
(note the dropped closing parenthesis) and leave everything else as is, that will not be a syntax error?I know that Forth is "loose syntax" in that Forth code is just a sequence of white-space separated words, so your comment and mine are both syntactically valid Forth, but without meaningful semantics. But Forth does not use parenthesized function calls the way Copper does.
Re: Copper: A statically-typed, loose syntax programming language
#8Earlier quoted context omitted.
No semicolons are ever required. It is loose syntax in that most anything, including this paragraph, is valid and readable code
That's still not very helpful to me. You might want to explain it a bit more in the README. For example, taking this line from the first example: this.peek = +(this.a: this.b:) If I replace this by: this.peek = +(this.a: this.b: (note the dropped closing parenthesis) and leave everything else as is, that will not be a syntax error? I know that Forth is "loose syntax" in that Forth code is just a sequence of white-spa…
Re: Copper: A statically-typed, loose syntax programming language
#9GitHub doesn't recognize this enough to summarize it, and that last paragraph seems weird to me; is this a customized license of one that I might recognize? https://github.com/chronologicaldot/CopperLang/blob/master/l...
The license seems self-contradictory. On one hand it says "THIS SOFTWARE MAY BE USED, MODIFIED, REDISTRIBUTED, DECOMPILED, DISASSEMBLED, REVERSE-ENGINEERED AND INCORPORATED INTO OTHER WORKS FREELY" So, it can be used and incorporated freely, but it also says "YOU ARE NOT GRANTED LEGAL AUTHORITY OVER THE USAGE, PROTECTION, AND DISTRIBUTION OF THIS SOFTWARE." so you don't have legal authority over its usage. IANAL, but…
Re: Copper: A statically-typed, loose syntax programming language
#10What benefits does copper bring over other langs?
Also loose is a bad move. Loose semantics proved a mistake (PL1), loose syntax brings nothing to the party. Semicolons were used in pascal because wirth understood parsing, and they are there to help the parser resync after a syntax error is detected.
From experience if you make semicolons optional as in sql, it helps not at all, AND they are (said by microsoft to) become mandatory in future releases of TSQL, AND I and at least some other users of SQL want them mandatory.
I also don't understand why a non-typical syntax is used. Not at all saying it's wrong but it seems to differ from other syntactic conventions only to be different rather than better (I may be wrong!). Why "gte(a: 100)"? Syntax matters to a degree, why diverge?