Palarth
palarth.bsky.social
Palarth
@palarth.bsky.social
The beers are taunting me the most. Soon. Real soon, now
December 20, 2024 at 4:57 PM
You can always pass the variable to "_":
_ = myVariable
Also works for packages:
_ = fmt
Just remember to remove it before commit :)
December 7, 2024 at 7:46 AM
To be honest, I'm not sure I understand half of my Emacs config. Been telling myself that I will learn elisp and take full control over it for years. Some day I might happen. Until then I'm just glad it works
November 23, 2024 at 9:52 PM
Here's the proposal I think: github.com/golang/go/is...

Seems like it was declined. Good greif, I was about to have a small panic
proposal: Go 2: remove ++ and -- operators · Issue #21263 · golang/go
The -- and ++ operators (called IncDec statements in the spec) are confusing for newcomers to the language. In other languages with similar syntax, ++ and -- can appear as either prefix or postfix ...
github.com
November 23, 2024 at 9:47 PM
Excellent point. Thank you. I will borrow that!
November 23, 2024 at 9:27 PM
I am no Crystal expert, far from. Crystal is a language I try out every now and then, but always leave aside. I think this document gives a good example about the type checking: crystal-lang.org/reference/1.... or maybe crystal-lang.org/reference/1.... :)
if var.nil? - Crystal
crystal-lang.org
November 22, 2024 at 9:58 PM
Sometimes I wish Go was a little bit more like Crystal, where you need to type check a variable before using it in a type specific way. Sometimes
November 22, 2024 at 8:56 PM
I hear you. I guess it makes sense, given that it's more or less a pointer, but I've been bitten by uninitiated maps (and slices) many times
November 22, 2024 at 8:38 PM