Timeline for Determine your language's version
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 17, 2017 at 8:34 | comment | added | user202729 |
Explanation: Using different format of time in different versions. That can be golfed more to {1} Tr[1^#&@@%~DateRange~%]/3+9 (31 bytes), or even 7+Length@Now (12 bytes)
|
|
Aug 16, 2017 at 14:33 | history | edited | ktm | CC BY-SA 3.0 |
added 30 characters in body
|
Aug 16, 2017 at 14:21 | comment | added | Amndeep7 | Now I feel like an even bigger dunce haha | |
Aug 16, 2017 at 14:20 | comment | added | ktm | @Amndeep7 No problem! This isn't even Matlab though, which may have been your first mistake ;) | |
Aug 16, 2017 at 14:20 | comment | added | Amndeep7 | Ahh I see, my bad - it's been a while since I've looked at Matlab code. I guess I mistakenly thought the {1} stuff was how Matlab allowed one to access the results of a previous line in its REPL. | |
Aug 16, 2017 at 14:19 | history | edited | ktm | CC BY-SA 3.0 |
added 184 characters in body
|
Aug 16, 2017 at 14:16 | comment | added | PurkkaKoodari | @Amndeep7 The submission is the 37 byte code inlined in the first paragraph. The code blocks are only output demonstrations. | |
Aug 16, 2017 at 14:15 | comment | added | ktm | @Amndeep7 I see. I think there was some confusion, I edited my previous comment to try and clarify. $Version is not in any way required for my actual line of code to operate. | |
Aug 16, 2017 at 14:12 | comment | added | Amndeep7 |
All good friend - the thing is, you are using something like $VersionNumber , but instead you're calling it $Version . To my mind, while the meat of your program is the Length@DateRange stuff, that wouldn't work without $Version just providing the full version information that you then process, which therefore violates the rules.
|
|
Aug 16, 2017 at 14:07 | comment | added | ktm |
I'm only using $Version to demonstrate that it outputs the correct result in the correct version, $Version is not part of my answer...
|
|
Aug 16, 2017 at 14:06 | comment | added | Amndeep7 |
Fairly sure that your answer doesn't meet the requirements of the prompt, namely the last rule due to you using $Version : Your program may not use a builtin, macro, or custom compiler flags to determine the language version.
|
|
Aug 16, 2017 at 14:04 | history | answered | ktm | CC BY-SA 3.0 |