48 karma · joined May 12, 2024 (2y ago) · 40 submissions
comment 6mo ago · link · parent
comment 8mo ago · link · parent
The unused variable warning is legitimately really annoying though and has me inserting `_ = x;` all over the place and then forgetting to delete it, which is imo way worse than just... having it be a warning.
comment 8mo ago · link · parent
Personally I would like people to try learning other languages more (it's hard but rewarding) but you can't learn every language ever, and it is really hard to learn a language to fluency.
comment 8mo ago · link · parent
I would love something like this for native applications; I'm so tired having to wear C's skin every time I want to do bind together code written in different languages.
comment 8mo ago · link · parent
I'm not exactly sure how this works when binding it to GC languages.
[1] https://component-model.bytecodealliance.org/design/wit.html...
comment 9mo ago · link · parent
comment 9mo ago · link · parent
it isn't for LLMs at all really but if you want to do code editing via voice it seems like it'd be really good for that.
comment 9mo ago · link · parent
comment 9mo ago · link · parent
regardless, what you say is true and that's an interesting comparison.
comment 9mo ago · link · parent
by "C" do you mean users of C? because most of the C code I write I don't use those sorts of techniques; instead I just use the preprocessor to make scuffed generics.[1] Unless you mean in libc itself, where I don't recall any use of pointer casts like that? If I'm missing something, please enlighten me.
[1] see my (probably terrible) dynamic array implementation, for example: https://git.sr.ht/~thezipcreator/xstd/tree/main/item/src/xst...
comment 9mo ago · link · parent
In many programming languages, ≠ is not going to be a valid operator. In languages that allow unicode identifiers, it would be a bizarre choice to use ≠ inside an identifier, so you shouldn't have to worry about that case either. This holds for pretty much every other operator that gets a ligature. This only matters for languages like Agda, in which case just.. use a different font. You might even be able to automate this depending on your editor.
> They’re guaranteed to be wrong sometimes.
This is true (for example, in C++ I've occasionally had `>` be ligature-ized when it wasn't an operator and was just the end of a template, like `Foo<Bar>`) but it's never really been much of a problem for me; it's easy to ignore.
> If you don’t believe me, try it for 10 or 15 years.
granted I've only been using Fira Code for more like 4 years or so, but I've always preferred it since I've been using it. I really think this is just a matter of personal preference.
> So if you’re preparing your code for others to read—whether on screen or on paper—skip the ligatures.
This I can understand. Ligatures would probably be likely to cause confusion in people who aren't used to them, so I agree that in that situation it's probably best to leave them out.
comment 1y ago · link · parent
I think a true AntiLang would also break conventions of how programming itself works too. This just seems like a normal language with weird syntax.