Skip to content

SAKryukov/wish-you-were-here

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Wish You Were Here… Only Once

Think about how many times you wanted to write something like this:

if (First Time Here)
    ThisWillHappenButOnlyOnce();

The only problem is that the condition should work separately for every call of the predicate of the “if” block; ideally, it must be sensitive to the location of the code line.

This is something the presented technique does.

Original publication

About

The exotic technique based on context-sensitive conditions

Topics

Resources

License

Stars

Watchers

Forks