2 points

I can actually define this in TCL:

% proc ifn't {cond cmds} {if {!$cond} {uplevel $cmds}}
% ifn't false {puts 12}
12
% ifn't true {puts 12}
% 
permalink
report
reply
29 points

I’m struggling to understand if this is true or ifn’t true

permalink
report
reply
18 points

permalink
report
reply
1 point

Ding ding ding ding ding ding…

permalink
report
parent
reply
26 points

I’d take a not or “if not” operator tbh.

permalink
report
reply
3 points

ifnt instead of ifn’t

permalink
report
parent
reply
9 points
*

It has a not keyword it’s used for pattern matching.

if (x is not null)
permalink
report
parent
reply
3 points

It also has a !=.

permalink
report
parent
reply
2 points

Pattern matching is different.

permalink
report
parent
reply
2 points

Stuff can be two things

permalink
report
parent
reply
28 points

Imagine the regex needed to highlight code with that extra single quote.

permalink
report
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 5.2K

    Monthly active users

  • 1.1K

    Posts

  • 38K

    Comments