00:04:52 | dts | i forgot about the documentation |
00:09:57 | EXetoC | it's also simple to search the std lib since the language is greppable |
00:15:07 | EXetoC | speaking of which, are there plans to introduce instant searching for the documentation? |
00:18:04 | Araq | not really |
00:20:09 | EXetoC | it sure is convenient |
00:20:25 | * | BlaXpirit quit (Quit: Quit Konversation) |
00:23:03 | dts | man rosetta code is awesome |
00:23:55 | EXetoC | local caching might be best then, and then ideally you'd want a parsing API that can be used with the JS target |
00:25:50 | dts | whats the proper way to write to stderr? |
00:26:29 | EXetoC | stderr.write? |
00:26:45 | dts | i thought so, but i wasn't sure |
00:27:49 | EXetoC | it's easy to try |
00:28:28 | EXetoC | having a shortcut for saving and building is nice |
00:32:15 | EXetoC | speaking of which, I should use conque for vim again |
00:33:10 | Joe_knock | I'm presenting tomorrow. A bit nervous |
00:34:03 | dts | ok... ive ran into an error, that normally i could figure out, but nimrod errors are new to me especially since it compiles to c code. the code: http://paste.ubuntu.com/9290543/ and the error: http://paste.ubuntu.com/9290539/ |
00:36:03 | EXetoC | line 3? |
00:36:08 | EXetoC | and use true/false instead |
00:36:44 | EXetoC | the target language isn't really of relevance |
00:36:52 | Joe_knock | I'm going the "It's similar to Python but Nim gives C-like powers as the point of my topic" |
00:38:00 | EXetoC | I think the comparison with Python is a little shallow |
00:38:26 | EXetoC | unless maybe it's specifically referring to the syntax |
00:38:35 | EXetoC | anyway, good luck |
00:38:38 | Joe_knock | The people I am presenting to are pythonistas |
00:39:10 | Joe_knock | I haven't mentioned many of the more advanced stuff (especially language-specific features, which are a bit over my head currently) |
00:39:13 | Joe_knock | thanks |
00:40:21 | fowl | "var msg: string" no |
00:40:22 | EXetoC | C-like powers, ok fair enough |
00:40:23 | fowl | this is not pascal |
00:40:56 | EXetoC | ah yes |
00:41:25 | fowl | msg: var string |
00:44:00 | EXetoC | why is it not like with variables? |
00:44:08 | Joe_knock | fowl: did you write the Python within Nim code? |
00:44:58 | fowl | EXetoC, because this is pascal, god damnit |
00:46:08 | EXetoC | solid argument |
00:46:10 | fowl | Joe_knock, i'm going to say, no |
00:46:31 | Joe_knock | fowl: https://github.com/nim-lang/python |
00:46:48 | fowl | ah no, araq did |
00:47:51 | Joe_knock | aah okay |
00:50:24 | * | Matthias247 quit (Read error: Connection reset by peer) |
00:52:54 | fowl | idk what to do about this https://github.com/nim-lang/opengl/issues/10#issuecomment-64858108 |
00:54:48 | Araq | fowl: I suggested to make these GL_BYTE_RANGE |
00:54:57 | Araq | but people can't read |
00:55:12 | Araq | or leave them with the leading 'c' who cares |
00:56:21 | Araq | (is there a programmer left who cares about the end result instead of masturbating over his code?) |
01:01:08 | EXetoC | I didn't think about those other collisions. might as well just keep that prefix then.. |
01:01:48 | Araq | I also showed how to check for cs:partial |
01:02:02 | * | BitPuffin joined #nimrod |
01:31:01 | fowl | Araq, where does _RANGE come from |
01:55:47 | * | AFKMorpork is now known as AMorpork |
02:10:07 | Joe_knock | Does anybody know why: sudo ln -s $PWD/nim /usr/bin creates a symlink that goes to Nimrod/nim and not Nimrod/bin/nim ?? |
02:10:43 | * | darkf joined #nimrod |
02:22:20 | * | Joe_knock quit (Quit: Leaving) |
02:25:40 | * | johnsoft quit (Ping timeout: 258 seconds) |
02:26:43 | * | johnsoft joined #nimrod |
02:34:37 | * | saml_ joined #nimrod |
02:46:57 | * | saml_ quit (Ping timeout: 245 seconds) |
02:57:53 | * | BitPuffin quit (Ping timeout: 240 seconds) |
03:00:26 | * | saml_ joined #nimrod |
03:10:51 | * | kapil__ joined #nimrod |
03:40:38 | * | q66 quit (Quit: Leaving) |
03:50:25 | * | ARCADIVS joined #nimrod |
04:13:47 | * | boydgreenfield joined #nimrod |
04:15:48 | * | EXetoC quit (Ping timeout: 265 seconds) |
04:38:24 | * | boydgreenfield quit (Quit: boydgreenfield) |
04:53:02 | * | saml_ quit (Quit: Leaving) |
05:09:22 | * | milosn joined #nimrod |
05:11:04 | * | Epic|gmpreussner quit (Quit: Konversation terminated!) |
05:51:01 | * | untitaker quit (Ping timeout: 244 seconds) |
05:57:55 | * | untitaker joined #nimrod |
06:03:29 | * | AMorpork is now known as AFKMorpork |
06:25:56 | * | Boscop_ joined #nimrod |
06:26:12 | * | darkf_ joined #nimrod |
06:36:05 | * | AFKMorpork is now known as AMorpork |
06:37:14 | * | darkf quit (*.net *.split) |
06:37:14 | * | rpag quit (*.net *.split) |
06:37:15 | * | Boscop__ quit (*.net *.split) |
06:37:15 | * | ekarlso- quit (*.net *.split) |
06:37:16 | * | skroll1 quit (*.net *.split) |
06:37:54 | * | skroll1 joined #nimrod |
06:39:10 | * | rpag joined #nimrod |
06:40:40 | * | ekarlso- joined #nimrod |
06:46:15 | * | darkf_ is now known as darkf |
07:00:41 | * | AMorpork is now known as AFKMorpork |
07:01:53 | * | ARCADIVS quit (Quit: ARCADIVS) |
07:36:43 | * | gour joined #nimrod |
07:37:34 | * | dain joined #nimrod |
07:41:17 | * | dts quit (Ping timeout: 272 seconds) |
07:55:02 | * | gokr joined #nimrod |
08:16:52 | ldlework | hmm |
08:17:00 | ldlework | do I really have no random module in my nim installation? |
08:17:49 | fowl | yea |
08:18:31 | ldlework | fowl: will the package manager supply it? |
08:19:02 | fowl | presumably you want random() from the math module? |
08:19:30 | fowl | there is a package called 'random' too though |
08:19:42 | ldlework | fowl: yeah the package |
08:19:50 | ldlework | any idea how to get it? |
08:19:58 | fowl | nimble update; nimble install random |
08:20:08 | * | gokr quit (Quit: Leaving.) |
08:20:38 | ldlework | I think nimble just broke itself |
08:21:33 | ldlework | fowl: https://gist.github.com/dustinlacewell/9254874c42392865d400 |
08:23:24 | fowl | ldlework, you just told it to rename ~/.babel to ~/.nimble, now ~/.babel/bin/nimble doesn't exist |
08:23:45 | fowl | need to update your symlink |
08:23:55 | ldlework | fowl: oddly doing "which nimble" doesn't give me anything |
08:23:58 | ldlework | wonder where the symlink is |
08:24:51 | fowl | maybe its an alias or something |
08:25:07 | fowl | and make sure all of ~/.babel is moved |
08:36:45 | * | dain quit (Quit: dain) |
08:37:17 | * | dain joined #nimrod |
08:37:27 | * | dain quit (Remote host closed the connection) |
08:40:41 | * | dts joined #nimrod |
08:49:30 | * | BlaXpirit joined #nimrod |
08:56:59 | * | milosn quit (Quit: Lost terminal) |
09:03:09 | * | gokr joined #nimrod |
09:04:01 | dts | main.nim(3, 14) Error: ')' expected # does this mean the error is on line 3, column 14? |
09:04:53 | ldlework | yeah |
09:05:34 | dts | hmmm... that places it in the middle of var though |
09:08:09 | dts | http://paste.ubuntu.com/9295936/ |
09:08:15 | dts | can you help me with this? |
09:08:21 | dts | cause i cant figure out whats wrong |
09:09:47 | fowl | you pasted "main.nim" |
09:09:55 | dts | yeah |
09:10:01 | dts | oops |
09:10:05 | dts | my bad |
09:10:13 | dts | its been a while since i used pastebinit |
09:10:30 | dts | http://paste.ubuntu.com/9295944/ |
09:10:32 | dts | there we go |
09:11:26 | Araq | dts: as fowl already told you the syntax is proc error(msg: var string, ...) |
09:11:56 | Araq | cause 'var T' is its type, msg is still a param, not a variable |
09:11:56 | dts | sorry, i had to leave before i could see an answer the first time i asked |
09:14:39 | dts | ok well now its saying main.nim(14, 15) Error: type mismatch: got (string, TaintedString) |
09:14:59 | dts | is line not a string? |
09:15:50 | dts | never mind figured it out |
09:16:11 | * | matkuki joined #nimrod |
09:16:44 | matkuki | Hi, anyone up for a few newbie questions? |
09:17:14 | Araq | if you can live with my bad mood, then yes |
09:17:51 | * | bjz joined #nimrod |
09:17:58 | * | gokr quit (Quit: Leaving.) |
09:19:22 | matkuki | No problem, what is the "size" pragma? From the sdl2 library: "TWindowEventID* {.size: sizeof(byte).} = enum ..." |
09:20:20 | dts | what does this error mean? main.nim(19, 40) Error: for a 'var' type a variable needs to be passed http://paste.ubuntu.com/9296031/ |
09:20:50 | Araq | dts: just get rid of your 'var' for parameters |
09:20:59 | Araq | and read some tutorial |
09:21:30 | Araq | matkuki: it tells the compiler that the enum's underlying type should be "byte" for C interop |
09:22:08 | Araq | dts: also it's 'add', or &=, not += for strings |
09:22:17 | Araq | and 'true' instead of 'True' |
09:23:35 | matkuki | Araq: ok, thanks. |
09:28:52 | matkuki | Araq: in an "enum", when specifying members and only some members have a defined value, how are the other member values assigned? |
09:29:26 | Araq | oldValue + 1 |
09:33:38 | * | vissborg quit (Remote host closed the connection) |
09:37:05 | * | milosn joined #nimrod |
09:39:13 | * | vissborg joined #nimrod |
09:42:30 | matkuki | Araq: how do I add an int and a enum member? |
09:43:10 | fowl | dts, the tutorial is good for jumping in, the manual shows off all of nimrods features |
09:43:59 | dts | yeah im reading through the one on the site |
09:44:43 | dts | im learning more than the one i was using before, which is what lead to my noobish questions |
09:45:18 | Araq | matkuki: yourInt + ord(yourEnum) |
09:46:43 | matkuki | Araq: thanks, is "ord(yourEnum)" equivalent to "yourEnum.ord()"? |
09:46:56 | Araq | yeah |
09:48:10 | Araq | though I prefer yourEnum.ord then without the () |
09:49:23 | matkuki | no need for ()? good to know |
09:52:12 | gour | is there possibility to make the nim docs into ebook (*.epub) which one could put on book reader? |
09:54:53 | Araq | gour: that should be a couple oof subs |
09:54:55 | Araq | bb |
10:03:03 | * | gour is busy learning rpm-stuff, but suse is really great |
10:06:03 | * | Matthias247 joined #nimrod |
10:10:40 | * | BitPuffin joined #nimrod |
10:15:17 | * | matkuki quit (Ping timeout: 245 seconds) |
10:21:52 | * | gour quit (Ping timeout: 240 seconds) |
10:29:51 | * | gour joined #nimrod |
10:42:00 | dts | is there a bot that evaluates nim code? |
10:45:53 | * | BitPuffin quit (Ping timeout: 240 seconds) |
10:46:00 | * | dom96_ quit (Read error: Connection reset by peer) |
10:46:26 | * | gokr joined #nimrod |
10:48:30 | gokr | Araq: Bad mood? Are you ok? |
10:48:48 | * | gokr about to put furniture back into house... |
10:49:18 | gokr | I will revisit my OO articles btw, to make them up to date regarding procCall. |
11:07:55 | * | dts quit (Ping timeout: 255 seconds) |
11:40:29 | * | EXetoC joined #nimrod |
12:00:39 | fowl | Araq, I think this is a bug actually https://github.com/Araq/Nimrod/issues/1683#issuecomment-64941019 |
12:04:17 | fowl | ()s are needed for `.=`, `[]=` in discard (if, while, when, etc) |
12:09:35 | * | dom96_ joined #nimrod |
12:11:01 | * | BitPuffin joined #nimrod |
12:24:32 | * | xcombelle joined #nimrod |
12:32:23 | Araq | fowl: I don't think so, but will have a look |
12:33:08 | Araq | dom96_: dunno how the API should look like for "configurable smileys" |
12:38:54 | * | Araq implements a smileyFormat string |
12:53:54 | * | dom96_ quit (Ping timeout: 250 seconds) |
13:09:09 | NimBot | Araq/Nimrod devel 80b8361 Araq [+0 ±3 -0]: smileys configurable; safer image attribute handling |
13:09:09 | NimBot | Araq/Nimrod devel c2e04ab Araq [+0 ±2 -0]: fixes regression that caused pegs to not compile |
13:15:03 | ekarlso- | does nim have a DNS module / lib ? |
13:22:52 | EXetoC | can't find one |
13:26:43 | * | dom96_ joined #nimrod |
13:27:22 | dom96_ | Araq: A hash table. Smiley enum to smiley path. |
13:28:08 | * | BitPuffin quit (Ping timeout: 250 seconds) |
13:30:18 | dom96_ | or better yet an array |
13:30:40 | dom96_ | or if you want to give more customizability then allow me to specify arbitrary smileys |
13:30:52 | dom96_ | so smiley string (":)") to smiley path "smiley.png" |
13:33:04 | * | dom96_ quit (Quit: Leaving) |
13:50:11 | * | milosn quit (Remote host closed the connection) |
13:52:49 | * | q66 joined #nimrod |
14:01:46 | * | Matthias247 quit (Read error: Connection reset by peer) |
14:59:18 | * | xcombelle is now known as xcombelle_afk |
15:08:13 | * | AFKMorpork is now known as AMorpork |
15:10:40 | * | xcombelle_afk is now known as xcombelle |
15:26:16 | * | darkf quit (Quit: Leaving) |
15:55:40 | * | irrequietus joined #nimrod |
15:56:44 | EXetoC | Araq: so, check for NimVersion in the opengl module? |
16:01:23 | * | kapil__ quit (Quit: Connection closed for inactivity) |
16:09:20 | * | xcombelle quit (Ping timeout: 250 seconds) |
16:26:59 | EXetoC | has nimfix been applied to any packages yet? |
16:45:08 | * | milosn joined #nimrod |
16:49:48 | * | gour quit (Quit: Konversation terminated!) |
16:52:18 | * | gour joined #nimrod |
17:14:42 | * | Jesin quit (Quit: Leaving) |
17:21:23 | Araq | EXetoC: yes, I converted thousands of lines with it |
17:25:07 | * | matkuki joined #nimrod |
17:37:50 | Araq | EXetoC: yeah check for NimVersion |
17:44:28 | * | flaviu quit (Remote host closed the connection) |
17:45:06 | Araq | dom96: you got some format string instead to influence the smileys, don't complain |
17:45:29 | Araq | it's much easier this way |
17:46:42 | * | xcombelle joined #nimrod |
17:52:08 | * | gokr_ joined #nimrod |
17:54:41 | * | Matthias247 joined #nimrod |
17:57:40 | * | quasinoxen quit (Ping timeout: 250 seconds) |
17:59:21 | * | quasinoxen joined #nimrod |
18:09:37 | * | Jesin joined #nimrod |
18:23:57 | * | johnsoft quit (Read error: Connection reset by peer) |
18:25:21 | * | Varriount quit (Ping timeout: 244 seconds) |
18:31:27 | * | SkuulSockit joined #nimrod |
18:33:06 | * | SkuulSockit left #nimrod (#nimrod) |
18:37:57 | * | dom96_ joined #nimrod |
18:41:33 | * | BlaXpirit quit (Ping timeout: 264 seconds) |
18:41:51 | * | BlaXpirit joined #nimrod |
18:42:36 | * | Boscop__ joined #nimrod |
18:43:55 | matkuki | what is the 'pointer' type? |
18:45:19 | * | Triplefox quit (Ping timeout: 256 seconds) |
18:46:18 | * | Triplefox joined #nimrod |
18:46:22 | * | Boscop_ quit (Ping timeout: 256 seconds) |
18:50:05 | * | xcombelle is now known as xcombelle_afk |
19:02:49 | EXetoC | matkuki: it's the untyped equivalent of 'ptr T' |
19:02:50 | * | AMorpork is now known as AFKMorpork |
19:04:24 | matkuki | EXetoC: I see a lot of uses of it in C bindings like SDL, what is it used in this context for? |
19:05:34 | * | BitPuffin joined #nimrod |
19:05:48 | EXetoC | matkuki: opaque types |
19:06:50 | matkuki | EXetoC: oh, like void pointer in C? |
19:07:11 | EXetoC | but it's better to use either empty objects or 'distinct pointer' instead, so as to be able to differentiate between different opaque pointers |
19:07:21 | EXetoC | matkuki: yes |
19:08:19 | EXetoC | so that you don't accidentaly pass around pointers referring to the wrong data type |
19:08:32 | * | johnsoft joined #nimrod |
19:08:47 | matkuki | EXetoC: got it, thanks |
19:12:56 | * | flaviu joined #nimrod |
19:14:40 | * | flaviu quit (Read error: Connection reset by peer) |
19:16:29 | * | flaviu joined #nimrod |
19:21:47 | * | flaviu quit (Read error: Connection reset by peer) |
19:24:17 | * | flaviu joined #nimrod |
19:28:44 | * | Jesin quit (Ping timeout: 272 seconds) |
19:31:51 | * | BitPuffin quit (Ping timeout: 258 seconds) |
19:34:10 | * | dts joined #nimrod |
19:35:15 | * | xcombelle_afk is now known as xcombelle |
19:40:04 | * | BitPuffin joined #nimrod |
19:49:06 | * | gour quit (Quit: Konversation terminated!) |
19:49:48 | * | perturbation joined #nimrod |
19:59:09 | * | Jesin joined #nimrod |
20:05:14 | * | will joined #nimrod |
20:05:30 | * | Mat4 joined #nimrod |
20:05:36 | Mat4 | hello |
20:06:40 | will | hi mat4, when's the push to github coming? ;D |
20:07:40 | * | matkuki quit (Quit: ChatZilla 0.9.91 [Firefox 33.1/20141106120505]) |
20:07:59 | Mat4 | I have a Github repro already |
20:09:09 | will | yeah, I've been checking it out... 2 months since the last commit! |
20:10:03 | Mat4 | wait until next friday and check out |
20:10:18 | Mat4 | or check up ? |
20:10:28 | will | look forward to it :D |
20:18:08 | * | Jesin quit (Ping timeout: 256 seconds) |
20:24:45 | * | dts quit (Read error: Connection reset by peer) |
20:35:12 | * | dts joined #nimrod |
20:37:01 | * | Jesin joined #nimrod |
20:41:57 | ldlework | EXetoC: hi |
21:01:26 | * | superfunc joined #nimrod |
21:09:51 | * | jhc76 joined #nimrod |
21:21:07 | * | milosn quit (Quit: Lost terminal) |
21:34:58 | * | xcombelle quit (Ping timeout: 265 seconds) |
21:40:13 | * | superfunc quit (Ping timeout: 252 seconds) |
21:44:10 | ldlework | How do I wrie a proc that doesn't return a value |
21:44:48 | EXetoC | proc p = ... |
21:46:02 | ldlework | simple enough |
21:51:30 | * | Trustable joined #nimrod |
21:57:36 | Araq | Trustable: hi |
21:57:43 | Trustable | Hi Araq |
21:57:52 | Araq | are you familiar with "git bisect"? |
21:58:16 | Trustable | no |
21:58:37 | Araq | want to learn about it? |
21:59:03 | Araq | which commit broke https://github.com/Araq/Nimrod/issues/1684 ? |
22:01:19 | Trustable | Araq: I will try it when I find time. |
22:09:28 | * | Mat4 quit (Read error: Connection reset by peer) |
22:10:16 | * | Mat4 joined #nimrod |
22:11:10 | * | Boscop_ joined #nimrod |
22:11:20 | * | Boscop_ quit (Read error: Connection reset by peer) |
22:11:43 | * | Boscop joined #nimrod |
22:11:43 | * | Boscop quit (Changing host) |
22:11:43 | * | Boscop joined #nimrod |
22:14:17 | * | Boscop__ quit (Ping timeout: 240 seconds) |
22:44:31 | ldlework | Why is it telling me that game.screen is not assignable on line 24: https://gist.github.com/4b8c11838602c8c6e551 |
22:46:33 | EXetoC | because game is not a var parameter |
22:47:23 | ldlework | okay that makes sense |
22:47:36 | ldlework | EXetoC: now it is saying that addr(game.key) has no address |
22:48:20 | ldlework | ah probably because they are not var either |
22:48:41 | ldlework | hmm |
22:48:57 | ldlework | now it says that draw() is an unknown identifier on line 39 |
22:49:05 | ldlework | even though I have it defined as a proc taking TGame |
22:50:27 | ldlework | Invalid type TGame |
22:51:48 | ldlework | hmm why is my type invalid? |
22:52:23 | EXetoC | symbols must be declared before the point at which they are used |
22:53:00 | ldlework | The error is on line 56 but I define TGame type at the top |
22:53:59 | EXetoC | there's draw too |
22:54:18 | EXetoC | and you can lose that T prefix |
22:55:04 | ldlework | EXetoC: this is what I have, https://gist.github.com/eee5fc2d8416b2d3d3db |
22:55:29 | ldlework | Why does line 53 indicate that Game is an invalid type if it is defined at the top |
22:55:34 | ldlework | what did you mean "there's draw too" |
22:57:57 | ldlework | Am I instantiating it wrong? |
22:58:28 | Araq | ldlework: you cannot have 'var T' in an ojbect |
22:58:39 | Araq | it's only for parameters |
22:58:56 | ldlework | Araq: how do I make the attributes of an object assignable? |
22:59:31 | ldlework | helloworld.nim(24, 6) Error: 'game.screen' cannot be assigned to |
23:00:42 | EXetoC | by making said var 'var' |
23:00:54 | Araq | make your game param 'var' |
23:01:39 | EXetoC | there's no per-field mutability |
23:03:54 | * | Hakaslak quit (Quit: TODO: Generate 'Part & Quit Message') |
23:04:36 | ldlework | ah |
23:04:48 | ldlework | wait |
23:04:51 | ldlework | game is var |
23:04:56 | ldlework | var game = Game() |
23:05:13 | ldlework | oh in the procs |
23:06:05 | ldlework | it works! |
23:08:39 | EXetoC | wee |
23:21:06 | ldlework | EXetoC: where can I put the build nim-libtcod so I don't have to reference it's path manually |
23:21:12 | ldlework | is it in ~/.nimble |
23:23:11 | * | Hakaslak joined #nimrod |
23:24:29 | ldlework | eh I'll just make a makefile |
23:25:10 | * | Hakaslak quit (Client Quit) |
23:26:07 | ldlework | oh yeah nim's compiler has config files |
23:26:40 | EXetoC | I'll make it a package soon |
23:31:18 | * | Mat4 left #nimrod (#nimrod) |
23:32:45 | ldlework | EXetoC: I'm getting Error: argument for command line option expected: '--path' |
23:32:58 | ldlework | in my nim.cfg I have, --path:/home/dlacewell/dev/nim/nim-libtcod/src/libtcod |
23:33:37 | EXetoC | it's path=. --path= also works IIRC |
23:33:58 | ldlework | yeah neither of those worked |
23:34:00 | * | Stefan_Salewski joined #nimrod |
23:35:03 | EXetoC | path="..." |
23:35:10 | EXetoC | see nim.cfg |
23:35:18 | ldlework | quotes... |
23:35:30 | * | BlaXpirit quit (Quit: Quit Konversation) |
23:35:36 | Stefan_Salewski | {.hint[LineTooLong]: off.} seems to be accepted, but |
23:35:42 | Stefan_Salewski | {.hint[SmallLshouldNotBeUsed]: off.} |
23:36:09 | Stefan_Salewski | Error: invalid pragma: hint[SmallLshouldNotBeUsed]: off |
23:36:12 | * | superfunc joined #nimrod |
23:38:16 | ekarlso- | NimBot: foo |
23:43:09 | ldlework | Does nim support submodules? |
23:43:37 | Stefan_Salewski | I think not. |
23:43:47 | ldlework | poop |
23:44:52 | ldlework | Seems like we're asking for namespace problems? |
23:45:56 | EXetoC | why? |
23:46:12 | EXetoC | people haven't complained about this limitation much |
23:46:34 | EXetoC | namespace collisions can be resolved by qualifying symbols |
23:46:38 | ldlework | Well the ecosystem is small |
23:47:22 | ldlework | EXetoC: I'm thinking more like I rely on a package named X and X is the natural name for my own module |
23:47:36 | ldlework | But my own X can't be namespaced under a larger parent module for my whole package or whatever |
23:48:09 | ldlework | from bots.random import someproc |
23:48:37 | ldlework | instead, I have to do from random import someproc, but now that might conflict with the package 'random' I have installed via nimble |
23:48:41 | EXetoC | you can have a hierarcy and do import foo/bar/baz |
23:48:50 | EXetoC | which is similar I guess |
23:48:54 | ldlework | oh really? |
23:49:04 | ldlework | those are just path names? |
23:49:17 | EXetoC | I was thinking more about submodules residing in the same file as the parent |
23:49:19 | EXetoC | yes |
23:49:34 | ldlework | oh that is totally sufficent |
23:49:40 | EXetoC | it should be libtcod/libtcod for my lib for example |
23:51:04 | ldlework | EXetoC: hmm an annoying thing I just realized |
23:51:13 | ldlework | EXetoC: if you do from foo import SomeType |
23:51:30 | ldlework | you don't have access to any of the procs on that type! |
23:53:16 | EXetoC | right. selective imports are not often used though |
23:53:30 | ldlework | I'm really used to them from Python |
23:53:54 | EXetoC | mostly when only a small number of things will be imported, and I guess you have to take "member procs" into account |
23:54:23 | ldlework | from foo import SomeType* |
23:54:41 | ldlework | would be convienent syntax for importing all the exported procs for that type too |
23:54:50 | * | johnsoft quit (Read error: Connection reset by peer) |
23:57:09 | * | superfunc quit (Ping timeout: 264 seconds) |
23:59:02 | Stefan_Salewski | Hm, grep tells me that LineTooLong is a hint, but SmallLshouldNotBeUsed is a warning. Have to read the manual, bye. |