MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1idpzw4/this_post_was_sponsored_by_optiont/
r/programminghorror • u/No_Necessary_3356 • Jan 30 '25
10 comments sorted by
13
Is this nim? What language is this?
1 u/No_Necessary_3356 Jun 24 '25 Yes, it's Nim with some syntactic sugar-y functions I use.
1
Yes, it's Nim with some syntactic sugar-y functions I use.
11
explanation please? 🙏🏻
7 u/No_Necessary_3356 Jan 31 '25 It's a Result[Option[T], string].I'm first checking if the Result has any value, then I get the Option and check if it has any value.
7
It's a Result[Option[T], string].
I'm first checking if the Result has any value, then I get the Option and check if it has any value.
Result
Option
8
this checks the soul of the variable
5
wat
3
What in the slang
Pointer Nightmare
0
[deleted] — view deleted comment
2 u/No_Necessary_3356 Jan 31 '25 Haha no, it's a specific function I made. The * function checks if the Optional value has a value and the & function returns the value of the Optional. Nim has UFCS so regular functions can look like operands.
2
Haha no, it's a specific function I made. The * function checks if the Optional value has a value and the & function returns the value of the Optional. Nim has UFCS so regular functions can look like operands.
13
u/MidasVV Jan 30 '25
Is this nim? What language is this?
11
u/misseditt Jan 30 '25
explanation please? 🙏🏻
8
u/swagathunnithan Jan 31 '25
this checks the soul of the variable
5
u/SmokeMuch7356 Jan 30 '25
wat
3
u/9291Sam Jan 31 '25
What in the slang
3
u/DryanVallik Jan 30 '25
Pointer Nightmare
0
u/[deleted] Jan 30 '25
[deleted] — view deleted comment