1
2
Makefiles For Threesomes (sebastiancarlos.com)
2
79

So, this uses a macro, but if you're thinking anything is possible with a macro, it's actually not in Rust. The input does still need to parse as valid Rust tokens.

Which means the authors asked themselves at some point: Is the Rust syntax a superset of the Python syntax?
And well, it's not. In particular, some Python keywords will just be tokenized as an identifier (like a variable name).

But it is close enough that the authors decided against requiring a massive string to be passed in, which does amuse me. 🙃

3
395
4
834
5
215
6
311
7
426
submitted 1 week ago* (last edited 1 week ago) by SwordInStone@lemmy.world to c/programmerhumor@lemmy.ml

Context: jest is a Javascript testing library, mocking is something you do in test in order not to use production services. AI understood both terms in a none programming context

8
102
Every time (lemmy.ml)
9
652
10
236

:heart

11
1195
Comenting code (lemmy.ml)
12
888
13
0
😬... (sh.itjust.works)
14
319
15
223
16
208
DevOps (lemmy.ml)
17
509
18
187
19
297
20
166
git stash (lemmy.ca)
21
291
submitted 3 weeks ago* (last edited 3 weeks ago) by bi_tux@lemmy.world to c/programmerhumor@lemmy.ml

This happend to me right noww as I tried to write a gui task manager for the GNU/Linux OS

22
1477
Off by one solitude (fed.dyne.org)
23
882

I'm not a cat i swear

24
451
25
335
Some Mnemonics (sh.itjust.works)
view more: next ›

Programmer Humor

32261 readers
82 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS