00:43:20 | * | arkurious quit (Quit: Leaving) |
03:58:05 | FromDiscord | <Bung> sent a code paste, see https://play.nim-lang.org/#ix=4c3L |
03:58:55 | FromDiscord | <Bung> (edit) "https://play.nim-lang.org/#ix=4c3L" => "https://play.nim-lang.org/#ix=4c3N" |
04:06:02 | FromDiscord | <Elegantbeef> Unlikely cause `var T` requires being valid |
04:06:09 | FromDiscord | <Elegantbeef> Without views it is invalid |
04:08:55 | FromDiscord | <Bung> you mean view types ? manual example doesn't contain that |
04:09:05 | FromDiscord | <Elegantbeef> Yes view types |
04:09:23 | FromDiscord | <Elegantbeef> `var T` as a view is a view type, and per the spec `var T` should be not nilable |
04:10:09 | FromDiscord | <Elegantbeef> It should be definitely assigned as such it requires infinite memory afaik |
04:14:59 | FromDiscord | <aph> sent a code paste, see https://play.nim-lang.org/#ix=4c3P |
04:17:19 | FromDiscord | <Bung> In reply to @Elegantbeef "`var T` as a": thanks! |
04:20:42 | FromDiscord | <Bung> you need check the http response header |
04:30:35 | FromDiscord | <aph> In reply to @Bung "you need check the": oh. thanks |
05:02:24 | NimEventer | New thread by emre: Is it possible to specify dylib path through environment variables?, see https://forum.nim-lang.org/t/9502 |
05:06:54 | FromDiscord | <untoreh> does forking an async runtime make selectors clash? |
06:25:08 | * | rockcavera quit (Remote host closed the connection) |
06:26:37 | * | vicecea quit (Remote host closed the connection) |
06:27:06 | * | vicecea joined #nim |
06:27:36 | * | rockcavera joined #nim |
06:27:37 | * | rockcavera quit (Changing host) |
06:27:37 | * | rockcavera joined #nim |
06:44:49 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#ix=4c4d |
06:45:00 | FromDiscord | <Phil> (edit) "https://play.nim-lang.org/#ix=4c4d" => "https://play.nim-lang.org/#ix=4c4e" |
06:45:09 | FromDiscord | <Elegantbeef> Exactly |
06:46:41 | FromDiscord | <Phil> I just didn't know that the `/` came from std/os, I kept believing that came from nimja/parser |
07:08:55 | FromDiscord | <Phil> Is there a simple way to transform a `Regex` object into its simple string representation?↵Like turning the object representing the regex `^lala{0,3}` into that string |
07:09:13 | FromDiscord | <Phil> because `$Regex` just spams you with the entire object and its data |
07:10:17 | FromDiscord | <Elegantbeef> You want the uncompiled regex string? |
07:10:40 | FromDiscord | <Phil> Yeah, for logging purposes |
07:11:00 | FromDiscord | <Elegantbeef> There isnt anyway to do that in the stdlib libraries afaik |
07:11:31 | FromDiscord | <Phil> Curses |
07:14:01 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4c4r |
07:14:42 | * | krux02 joined #nim |
07:15:08 | FromDiscord | <Elegantbeef> If you really dont want more runtime cost you could change that to `MyRegex[str: static string] = distinct Regex` |
07:15:21 | FromDiscord | <Elegantbeef> Assuming you use string literals for all your regex needs |
07:16:52 | FromDiscord | <Phil> It's a cost the server pays on starting up, which is acceptable |
07:16:56 | FromDiscord | <Phil> (webdev) |
07:17:35 | FromDiscord | <Phil> But I can't just plonk that into Prologue, that's a more involved matter |
07:17:49 | FromDiscord | <Phil> So for now I'll just log in my own application and see if I refactor that out later |
07:17:59 | FromDiscord | <Elegantbeef> This kids is why we need generic interfaces! 😛 |
07:18:01 | FromDiscord | <Phil> (edit) "So for now I'll just log in my own application ... and" added "before the transformation into a regular expression" |
07:20:56 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#ix=4c4y |
07:21:49 | FromDiscord | <Elegantbeef> Nice |
07:22:28 | FromDiscord | <Phil> I'll likely refactor that later because the whitespaces are all hard-coded |
07:22:39 | FromDiscord | <Phil> But eh, for now get the POC down |
07:53:17 | * | PMunch joined #nim |
08:25:50 | * | krux02 quit (Remote host closed the connection) |
08:29:11 | * | dnh joined #nim |
09:08:21 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4c4U |
09:09:43 | FromDiscord | <Elegantbeef> Dont think you really need hooks for renames imo |
09:10:43 | FromDiscord | <amadan> current thoughts are jsony style, but they are usually just if statements so would be nicer to implement them like that instead |
09:11:10 | FromDiscord | <Elegantbeef> Yea using pragmas is cleaner |
09:12:18 | FromDiscord | <amadan> Guess that would just be a matter of at compile time looking up the type def and finding all the pragmas? ↵Probs more difficult then hooks but yeah would be 1000x cleaner so extra difficulty would be worth it |
09:13:43 | FromDiscord | <amadan> (edit) "then" => "than" |
09:13:50 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4c4W |
09:14:30 | FromDiscord | <Elegantbeef> Actually might be `[0]` on the `getCustomPragmaVal` |
09:16:09 | FromDiscord | <Elegantbeef> The best part about using the pragma with the `jsonName` is that it's 100% transferable if other serialisers agree on using that information |
09:16:25 | FromDiscord | <amadan> oh thats neat↵ok yeah seems better stylewise and codewise |
09:16:43 | FromDiscord | <amadan> Is that the pragma that status's serialiser uses? |
09:16:54 | FromDiscord | <Elegantbeef> No clue |
09:17:11 | FromDiscord | <Elegantbeef> it's just `template jsonName(s: string) {.pragma.}` |
09:18:43 | FromDiscord | <amadan> They seem to use `serializedFieldName` it seems (guessing more verbose name is cause they use it in the other parsers) |
09:19:05 | FromDiscord | <amadan> That sentence reads weird lol |
09:19:12 | FromDiscord | <Elegantbeef> You could always use the same 😄 |
09:19:16 | FromDiscord | <Elegantbeef> It's a bit wordy though |
09:23:42 | * | dnh quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
09:23:45 | FromDiscord | <enthus1ast> maybe i should export os↵(@Phil) |
09:23:54 | FromDiscord | <enthus1ast> to avoid this issue in the future |
09:24:23 | FromDiscord | <Elegantbeef> It sounds like a phil issue imo |
09:24:24 | FromDiscord | <Elegantbeef> But ymmv |
09:26:19 | FromDiscord | <enthus1ast> this indicates that os is not imported↵(@Phil) |
09:27:08 | FromDiscord | <Elegantbeef> Does you code require os to be imported to work? |
09:27:08 | FromDiscord | <Elegantbeef> your\ |
09:27:12 | FromDiscord | <enthus1ast> for the `/` |
09:27:13 | FromDiscord | <enthus1ast> when you use getScriptDir() / "foo.nimja" |
09:27:13 | FromDiscord | <enthus1ast> yes |
09:27:24 | FromDiscord | <Phil> If you scroll down a bit you'll see I posted that it was os 😛 |
09:27:33 | FromDiscord | <Phil> (edit) "If you scroll down a bit you'll see I ... posted" added "also" |
09:27:43 | FromDiscord | <enthus1ast> just got my first coffee ... |
09:27:56 | FromDiscord | <Phil> Man you sleep long 😄 |
09:29:03 | FromDiscord | <aruZeta> long time no see enthus1asts |
09:29:07 | FromDiscord | <aruZeta> (edit) "enthus1asts" => "enthus1ast" |
09:29:37 | FromDiscord | <enthus1ast> yeah some (paid) work stress lately unfortunately |
09:30:34 | FromDiscord | <enthus1ast> but i saw you've commited a renderer, nice! |
09:30:38 | FromDiscord | <aruZeta> yh |
09:30:52 | FromDiscord | <aruZeta> took yours and just made some refactoring here and there |
09:31:53 | FromDiscord | <enthus1ast> ill put the qr generator in my little nopaste project |
09:32:21 | FromDiscord | <enthus1ast> (i think i'm the only user, but yeah, one user soon already) \:) |
09:32:31 | FromDiscord | <aruZeta> haha |
10:40:47 | FromDiscord | <qb> How to disable "should be" hints? Tried {.hint[Name]:off.} |
10:41:38 | FromDiscord | <qb> Like ` Hint: 'vec3ClosestPy_wrapper' should be: 'vec3ClosestPyWrapper'` |
10:44:08 | FromDiscord | <qb> Well it worked in the `cfg` file |
10:53:19 | FromDiscord | <Bung> turn specific hint X on|off. hint:X means hint:X:on, as with similar flags. all is the set of all hints (only all:off is supported). |
10:53:23 | FromDiscord | <Bung> https://nim-lang.org/docs/nimc.html |
11:19:23 | FromDiscord | <auxym> crystal made the SO survey but not nim? https://survey.stackoverflow.co/2022/#most-loved-dreaded-and-wanted-language-want |
11:21:18 | * | dnh joined #nim |
11:49:13 | * | dnh quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
11:50:21 | * | dnh joined #nim |
11:57:31 | NimEventer | New thread by Cnerd: Nimbus-eth2 beacon node setup, see https://forum.nim-lang.org/t/9503 |
12:05:20 | * | dnh quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
12:09:18 | * | dnh joined #nim |
12:09:45 | * | arkurious joined #nim |
12:09:54 | * | jmdaemon quit (Ping timeout: 265 seconds) |
12:12:43 | * | PMunch quit (Quit: Leaving) |
12:25:00 | * | pech joined #nim |
12:26:31 | * | disso_peach quit (Ping timeout: 260 seconds) |
12:54:41 | FromDiscord | <Raynei486> how can you check if a whole string is alphabetical↵I feel like I'm missing something here |
13:00:34 | FromDiscord | <enthus1ast> that it is sorted? |
13:07:25 | FromDiscord | <dlesnoff> proc isAlphabetical(s: string): bool =↵ for c in s:↵ if not c.isAlphaAscii(): |
13:08:14 | FromDiscord | <dlesnoff> (edit) "proc isAlphabetical(s: string): bool =↵ for c in s:↵ if not c.isAlphaAscii():" => "sent a code paste, see https://play.nim-lang.org/#ix=4c5E" |
13:12:16 | FromDiscord | <Raynei486> sent a code paste, see https://play.nim-lang.org/#ix=4c5G |
13:12:32 | FromDiscord | <Raynei486> was thinking maybe there was a language feature + stdlib proc that would make it possible |
13:16:39 | FromDiscord | <dlesnoff> sent a code paste, see https://play.nim-lang.org/#ix=4c5J |
13:17:27 | FromDiscord | <dlesnoff> (edit) "https://play.nim-lang.org/#ix=4c5J" => "https://play.nim-lang.org/#ix=4c5K" |
13:17:38 | * | dnh quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
13:20:25 | FromDiscord | <auxym> In reply to @Raynei486 "was thinking maybe there": you can do it in a single line with `allIt` from sequtils: `s.allIt(it.isAlphaAscii)` |
13:21:57 | * | dnh joined #nim |
13:23:25 | FromDiscord | <enthus1ast> sent a code paste, see https://play.nim-lang.org/#ix=4c5L |
13:27:55 | FromDiscord | <dlesnoff> Using Whitespace const is better indeed |
13:31:21 | FromDiscord | <Esther> I really like nim’s sets |
13:31:42 | FromDiscord | <dlesnoff> sent a code paste, see https://play.nim-lang.org/#ix=4c5O |
13:56:28 | FromDiscord | <auxym> yeah, or as @enthus1ast suggested,↵`a.allIt(it in Whitespace + Letters)` |
13:59:11 | * | dnh quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
14:00:23 | FromDiscord | <enthus1ast> https://play.nim-lang.org/#ix=4c5W |
14:00:26 | FromDiscord | <enthus1ast> have benched them |
14:07:10 | FromDiscord | <Phil> sent a long message, see http://ix.io/4c60 |
14:07:22 | FromDiscord | <Phil> (edit) "http://ix.io/4c60" => "http://ix.io/4c61" |
14:08:10 | FromDiscord | <Phil> The main reason I actually care about the naming for these 2 so much is because they are what enable the extension to deal with user-defined datatypes |
14:08:31 | FromDiscord | <Phil> So ideally I'd want something the user can immediately associate with the concepts I named |
14:13:20 | FromDiscord | <Bung> you can check django |
14:19:36 | FromDiscord | <Horizon [She/Her]> Using Python after using Nim for a while feels odd lmao |
14:19:45 | FromDiscord | <Horizon [She/Her]> I feel lost using Python because of how nice Nim is |
14:20:45 | FromDiscord | <Phil> The speed with which I make type-errors in python because I have no compiler sanity checking me is insane |
14:29:37 | FromDiscord | <Horizon [She/Her]> It just feels really odd to be using Python now with how dynamic it is |
14:29:42 | FromDiscord | <Horizon [She/Her]> Also because I'm used to not having classes |
14:30:08 | FromDiscord | <Phil> Well that's just procedural vs oop then XP |
14:32:32 | FromDiscord | <Horizon [She/Her]> Yeah lmao |
15:10:19 | FromDiscord | <Patitotective> In reply to @Event Horizon "I feel lost using": reading python code is horrible |
15:10:55 | FromDiscord | <Horizon [She/Her]> It feels horrible writing it now lmao |
15:11:53 | * | dnh joined #nim |
15:33:36 | * | gsalazar joined #nim |
15:44:01 | * | CyberTailor joined #nim |
16:14:03 | FromDiscord | <auxym> it's much better (to read) with type hints |
16:14:57 | FromDiscord | <auxym> also in the case of small scripts, I much rather write (and read) python than bash, (or worse windows cmd. though powershell is good) |
16:16:22 | FromDiscord | <auxym> but yeah: trying to wrap your head around some huge code base (or even just LOCs in the 5 digits), without any type hints, is quite "fun". |
16:33:10 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#ix=4c6K |
16:33:23 | FromDiscord | <Phil> (edit) "https://play.nim-lang.org/#ix=4c6K" => "https://play.nim-lang.org/#ix=4c6L" |
16:36:42 | FromDiscord | <Phil> I also don't see any iterators that seem appropriate. I think what I'm looking for is an iterator that "unrolls" the loop, correct?↵All iterators I can find only iterate over fields of types/objects etc., not over static seqs |
16:37:24 | FromDiscord | <flywind> sent a code paste, see https://play.nim-lang.org/#ix=4c6M |
16:38:43 | FromDiscord | <flywind> In reply to @Isofruit "I have a compile-time": As the error message said, you need to indent between static and for keywords |
16:38:52 | FromDiscord | <flywind> sent a code paste, see https://play.nim-lang.org/#ix=4c6N |
16:38:52 | FromDiscord | <flywind> It works |
16:39:02 | FromDiscord | <flywind> (edit) "works" => "compiles" |
16:39:41 | FromDiscord | <flywind> (edit) "to indent" => "indentation" |
16:40:15 | FromDiscord | <Phil> It compiles but returns false, aka loops over at runtime, hmmm |
16:40:25 | FromDiscord | <Phil> I'll look at your first suggestion and try to wrap my head around that one |
16:42:42 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#ix=4c6P |
16:44:16 | FromDiscord | <Phil> I'm asking as that's not quite what I want.↵I just want that, when iterating over a const, that the value I get out is still the static string, I need it as I also have macros to generate `model.fieldName` out of it |
16:47:45 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#ix=4c6R |
16:48:11 | FromDiscord | <Phil> (edit) "https://play.nim-lang.org/#ix=4c6R" => "https://play.nim-lang.org/#ix=4c6T" |
16:48:43 | FromDiscord | <flywind> Yeah, you probably need static unroll |
16:48:49 | FromDiscord | <Phil> But how do I do that? |
16:49:32 | FromDiscord | <flywind> timotheecour had a rejected PR for that irrc. |
16:49:43 | FromDiscord | <flywind> https://github.com/nim-lang/Nim/pull/18038 |
16:50:25 | FromDiscord | <flywind> copy them and call it a day 😜 |
16:51:11 | FromDiscord | <Phil> Dang, I need this to be able to generate the code that fetches all foreign-key-options at compiletime and executing the code at runtime v.v... let's see if I can wrap my head around that |
16:53:16 | FromDiscord | <Phil> Ugh, there's 1 package to do this and its archivede |
16:53:18 | FromDiscord | <Phil> (edit) "archivede" => "archived" |
16:56:26 | FromDiscord | <flywind> It seems flawed, but at least works for this case |
16:56:49 | FromDiscord | <flywind> sent a code paste, see https://play.nim-lang.org/#ix=4c6V |
16:57:35 | FromDiscord | <Phil> If this works, do you mind if I throw it on SO? |
16:57:59 | FromDiscord | <Phil> Hot damn it does |
16:59:29 | FromDiscord | <Phil> Oh wait... shit, it only works if you directly throw it in |
16:59:43 | FromDiscord | <flywind> In reply to @Isofruit "If this works, do": I don't mind. But it doesn't work for seqs or variables, probably needs some modifications. |
16:59:51 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#ix=4c6X |
16:59:56 | FromDiscord | <Phil> Yeh just noticed |
17:06:10 | FromDiscord | <flywind> The problem seems to be that ForLoopStmt is not semchecked. |
17:06:18 | FromDiscord | <flywind> (edit) removed "to be" |
17:07:28 | FromDiscord | <Phil> In that macro, what is x? |
17:08:17 | FromDiscord | <flywind> x is `ForLoopStmt` |
17:08:21 | FromDiscord | <flywind> https://nim-lang.org/docs/manual.html#macros-for-loop-macro |
17:09:38 | FromDiscord | <Phil> And a forloopstmt is an array since it can be inversely indexed? (because x[^1] etc.) |
17:11:02 | FromDiscord | <flywind> It is a NimNode. You can use `treeRepr` to check what's it. |
17:11:25 | FromDiscord | <flywind> `echo x.treeRepr` in that macro |
17:11:28 | FromDiscord | <Phil> The elements it extracts are nonsense |
17:11:52 | FromDiscord | <Phil> ` let elems = x[^2]` will return you the symbol that you put in |
17:11:59 | FromDiscord | <Phil> Is that what you mean by semchecked? |
17:12:11 | FromDiscord | <Phil> (edit) "in" => "in, instead of the symbol's contents" |
17:12:34 | FromDiscord | <Phil> (Just not familiar with the lingo so I can only guess what semchecked precisely means) |
17:12:41 | FromDiscord | <Phil> (edit) "(Just" => "(Sorry, just" |
17:13:06 | FromDiscord | <flywind> If it is semantic checked, nkIdent should have been transformed into nkSym |
17:13:37 | FromDiscord | <Phil> Can I force a transformation of `a` (that's nkIdent right?) into its contents (that is nkSym, correct?) |
17:13:40 | FromDiscord | <Phil> (edit) "Can I force a transformation of `a` (that's nkIdent right?) into its contents (that is nkSym, correct?) ... " added "?" |
17:13:48 | FromDiscord | <flywind> You cannot get the implementation of an ident using `getImpl`. |
17:13:53 | * | CyberTailor left #nim (Konversation terminated!) |
17:13:55 | FromDiscord | <flywind> In reply to @Isofruit "Can I force a": I don't think so. |
17:14:37 | FromDiscord | <flywind> For a macro, `macro foo(x: typed)` will enforce semcheck. |
17:14:55 | FromDiscord | <flywind> So I think ForStmt is not going to work. |
17:15:51 | FromDiscord | <flywind> In reply to @flywind "For a macro, `macro": Like https://github.com/schneiderfelipe/unrolled/blob/b4297abbbbcc842d28664719cbf544fd85376409/src/unrolled.nim#L117 |
17:15:56 | FromDiscord | <flywind> It probbaly works |
17:16:01 | FromDiscord | <flywind> (edit) "probbaly" => "probably" |
17:16:47 | FromDiscord | <Phil> It sadly doesn't, already checked |
17:18:49 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#ix=4c73 |
17:21:12 | FromDiscord | <Phil> Hmmm what I want is copy paste a code-block n times, I wonder if I could do that with a template |
17:23:04 | FromDiscord | <flywind> You can post it on the Nim forum where some macros experts hang out, macros are usually too obscure to understand. |
17:33:54 | FromDiscord | <Phil> I'll post the question, though for now I found a workaround |
17:34:17 | FromDiscord | <Phil> to solve my specific problem, not for unrolling in general |
17:54:38 | FromDiscord | <Phil> Man if only I could store typedesc's in variables |
17:54:44 | FromDiscord | <Phil> (edit) "Man if only I could store typedesc's in variables ... " added "or at least constants" |
18:31:25 | * | dnh quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
18:34:25 | * | gsalazar quit (Remote host closed the connection) |
18:34:47 | * | gsalazar joined #nim |
18:43:15 | * | gsalazar quit (Ping timeout: 252 seconds) |
18:46:54 | FromDiscord | <dlesnoff> You want to use a macro to unroll a for loop ?↵I haven't checked the macro yet, but yes it is not a priori possible to split an untyped argument and get the body of a for loop. What you want to do instead is pass two untyped arguments, the sequence or slice on which you iterate and the body of the for loop. This would make easier the unrolling I guess.↵But I'll see in detail with your forum post |
18:48:51 | FromDiscord | <dlesnoff> sent a code paste, see https://play.nim-lang.org/#ix=4c7r |
18:49:07 | * | qwr quit (Ping timeout: 252 seconds) |
19:01:10 | * | qwr joined #nim |
19:26:20 | FromDiscord | <Phil> Nevermind, I lied, that approach couldn't possibly work, still stuck with the need to have an unrolling forloop over compile-time seqs, god damnit |
19:26:52 | NimEventer | New thread by Isofruit: How to unroll a loop over a compile-time seq?, see https://forum.nim-lang.org/t/9504 |
19:43:57 | * | sagax quit (Remote host closed the connection) |
19:47:48 | FromDiscord | <Horizon [She/Her]> Progress update: I can now set variables in the JVM, i cannot access them yet lmao |
19:48:23 | FromDiscord | <Phil> In reply to @Event Horizon "Progress update: I can": One thing after another |
19:48:37 | FromDiscord | <Phil> Do you interact directly with the JVM btw? |
19:48:41 | FromDiscord | <Phil> Or do you compile to Java? |
19:49:53 | FromDiscord | <Phil> Like is it nim --> Byte-code for the JVM↵Or nim --> Java --> Byte code for the JVM? |
19:50:08 | FromDiscord | <Horizon [She/Her]> I'm doing Nim --> Jasmin --> Bytecode |
19:50:49 | FromDiscord | <Horizon [She/Her]> Jasmin is an (old) bytecode assembler, i'm using this to help me work out major flaws before i go with Nim --> Bytecode directly |
19:51:38 | FromDiscord | <Horizon [She/Her]> Also i'll have to do uint math on my own because of how the JVM works |
19:51:43 | FromDiscord | <Horizon [She/Her]> Which isn't very fun lmao |
19:53:35 | FromDiscord | <Phil> My condolences, I shall suffer with you, though on my own code problems ^^' |
19:53:51 | FromDiscord | <Horizon [She/Her]> Hope you'll figure your issues out haha |
19:54:23 | FromDiscord | <Phil> Push comes to shove I can at least still have a crippled version of an admin area |
19:54:47 | FromDiscord | <Phil> Sadly no select field for fk fields like django does, but at least you'd be able to enter the fk field by hand |
19:55:26 | FromDiscord | <Horizon [She/Her]> Fair |
19:56:32 | * | sagax joined #nim |
22:27:18 | * | dnh joined #nim |
22:29:50 | * | arkurious quit (Quit: Leaving) |
22:32:36 | * | attah quit (Ping timeout: 260 seconds) |
22:41:16 | * | jmdaemon joined #nim |
22:53:02 | * | dnh quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
22:56:25 | * | derpydoo joined #nim |
23:16:19 | * | lain quit (Remote host closed the connection) |
23:20:36 | * | lain joined #nim |
23:25:45 | FromDiscord | <Takemichi Hanagaki> sent a long message, see http://ix.io/4c8t |
23:26:04 | FromDiscord | <Takemichi Hanagaki> (edit) "http://ix.io/4c8t" => "http://ix.io/4c8u" |
23:26:23 | FromDiscord | <Takemichi Hanagaki> I'm not asking to explain me hoe it works, but when I shoud use and why it was choosen. |
23:26:31 | FromDiscord | <Takemichi Hanagaki> (edit) "hoe" => "how" |
23:26:38 | FromDiscord | <huantian> generally it's to help with the distinction that lowercase first character is a variable or proc, while uppercase first character is for types |
23:27:09 | FromDiscord | <huantian> and since it's common to have a variable with the same name as a type, they need to be distinct |
23:27:34 | FromDiscord | <Elegantbeef> You should use it when the libraries you rely on dont use the same conventions as you |
23:28:15 | FromDiscord | <Takemichi Hanagaki> In reply to @huantian "generally it's to help": Thank you! 😄 ↵So, I'll use Upper with types! |
23:28:28 | FromDiscord | <Elegantbeef> This includes machine translated library bindings or people that just prefer different conventions |
23:28:45 | FromDiscord | <Elegantbeef> I swear people that write `SCREAMINGCASE` constants dont get enough affection |
23:28:57 | FromDiscord | <Takemichi Hanagaki> In reply to @Elegantbeef "This includes machine translated": Yes, this explanation was covered in documentation. 😄 |
23:29:36 | FromDiscord | <Takemichi Hanagaki> In reply to @Elegantbeef "This includes machine translated": This is true. SCREAMINGCASE, Loooool! |
23:30:03 | FromDiscord | <Takemichi Hanagaki> In reply to @Elegantbeef "I swear people that": This is true. SCREAMINGCASE, Loooool! |
23:30:13 | FromDiscord | <Takemichi Hanagaki> Thanks, Beef! 😉 |
23:30:53 | FromDiscord | <Elegantbeef> Nim originally was fully insensitive like pascal, but that created the tedious `TMyType` which pascal does |
23:32:42 | FromDiscord | <Rainbow Asteroids> sent a code paste, see https://play.nim-lang.org/#ix=4c8x |
23:34:36 | FromDiscord | <auxym> In reply to @Elegantbeef "I swear people that": so, all C programmers? 🤡 |
23:34:59 | FromDiscord | <Elegantbeef> Indeed |
23:36:00 | FromDiscord | <Rainbow Asteroids> from now on, all my vars will be in SCREAMING_CASD |
23:36:04 | FromDiscord | <Rainbow Asteroids> (edit) "SCREAMING_CASD" => "SCREAMING_CASe" |
23:36:09 | FromDiscord | <Rainbow Asteroids> (edit) "SCREAMING_CASe" => "SCREAMING_CASE" |
23:36:17 | FromDiscord | <Rainbow Asteroids> i love phone keyboards |
23:36:21 | FromDiscord | <Elegantbeef> Well we have style insensitivity so as long as i dont have to contribute to your shit pile i'm fine |
23:36:28 | FromDiscord | <Rainbow Asteroids> lol |
23:37:21 | * | attah joined #nim |