Hacker News new | ask | show | jobs
by LoathsLights 2020 days ago
Now imagine doing that same thing for every system you're programming on. And then imagine having to do it for a million different symbols. I'm sure as hell glad you're not in charge of any of this.
2 comments

> Now imagine doing that same thing for every system you're programming on.

As a matter of fact, I already do, the XCompose way.

  yadm clone /path/to/dotfiles/repo.git¹
As for the vim way, why would I use a system without vim²?

> And then imagine having to do it for a million different symbols.

I don’t know other symbols as useful as this, but sure, either of my solutions scales fine (`yadm clone` shouldn’t get bogged down by any repo smaller than the Linux kernel’s). My system's /usr/share/X11/locale/en_US.UTF-8/Compose already has a section for APL’s symbols out of the box.

¹yadm is dumb by the way, any symlink manager + git/hg is probably better

²As it so happens, I do: because vim is bloat and https://sr.ht/~martanne/vis/ fits much better in the ramdisk my OS always runs in — but I’d bet 99.99% ±0.009% of programmers install their OS on an HDD/SSD and don’t care.

A better solution is just to use the word 'lambda', and let your text editor render it as a lambda symbol if you want (my emacs does this).
No, that's a shithouse solution.

Everyone that doesn't have a fancy IDE now has 6-8 extra useless characters for something that should be syntax.

How is it different than the word "function"?
It's not, that's why people use arrow syntax in languages like Javascript for short in-lined functions.