« first day (59 days earlier)      last day (601 days later) » 

5:35 PM
Infix operator idea: isa. Works like instanceof in JS or like isinstance() in Python.
 
5:57 PM
Hmmm... isa or is-a?
We should also probably have has-a
 
@quartata Like \index, but looks at types.
 
@El'endiaStarman Yeah.
 
 
1 hour later…
7:23 PM
I think we should have mnemonics for punctuation symbols.
> Pytek
As the only content on this page, it's very... descriptive.
 
@zyabin101 What?
You mean constants preset to punctuation? Why?
 
@quartata Nope.
Alternative spellings for punctuation used in Pytek development.
So for example, ? question mark could become erm.
 
What?
 
@zyabin101 I don't think this will help clarity at all.
 
Okay. I see this is declined?
Okay.
 
 
2 hours later…
9:02 PM
x = y
y = 2
\print(x)
y = 4
\print(x)
@quartata: What should the output be?
 
The age old question.
 
I'm gonna say 2\n4
i.e pass-by-reference.
But, we have a few options.
We could do something like x = &y to force it to store a reference and not a value.
And have x = y store the value by default.
 
Hmmm. Part of my motivation for allowing such a piece of code is to greatly reduce dependency issues, like in cases where you need two functions to be able to call the other.
But we could stick it in an if conditional.
x = y
if(z){y = 2}{y = 4}
\print(x)
This makes me inclined to think that the output for the previous example should be 2\n4, likewise.
y = 3
x = y
if(z){y = 2}{y = 4}
\print(x)
@quartata: What about that one?
 
9:20 PM
Hm
@El'endiaStarman Well what's z?
 
@quartata Can be either true or false.
 
I think it should be 2 if it's true and 4 if it's false.
Keep it consistent
Oh, wait.
I see what you mean.
Hm
 
yeah...
I'm thinking that maybe we should do it like this: if a variable's value is not fully defined yet, then it will have whatever value once it becomes fully defined. Otherwise, it behaves as normally expected.
So my first example should actually output 2\n2.
 
9:42 PM
That sounds good for the most part but I think we should have some form of references
Don't get me wrong: I personally prefer having it like 2\n2 but we need to provide a way so that it can be 2\n4 too
 
10:07 PM
Yeah, sure.
@quartata Would x <: y suffice for that? Whenever x is needed, the expression is evaluated.
 
Sure.
Hmm, I wonder how Haskell does this.
 
Ask Zgarb. I gotta go, and I'll be back in a few hours.
 
Wait I'm stupid
Variables are immutable in Haskell anyways
So it doesn't matter
 

« first day (59 days earlier)      last day (601 days later) »