alexshendi has quit [Ping timeout: 240 seconds]
orivej has joined #picolisp
xkapastel has quit [Quit: Connection closed for inactivity]
<
Regenaxer>
razzy, the current syntax is convenient
<
Regenaxer>
The current class being global is convenient
<
Regenaxer>
in other langs too, eg. the current file
<
Regenaxer>
And you can 'extend' the class in other source files
<
Regenaxer>
(class +rook (dm ... has no advantage at all. It is for the side effect, not a functional construct for eg. a meaningful value
<
razzy>
i will meditate on it
<
razzy>
maybe i should say i will pray with class in mind
<
Regenaxer>
pray? ;)
<
razzy>
to the machine gods :]
<
Regenaxer>
good! :)
<
razzy>
btw, i feel that inheretance and "tags" are powerfull tools. but OOP aproach seem needlessly complicated
<
razzy>
OOP seem forced aproach from compiled languages that also cannot use data as code
<
Regenaxer>
OOP is useful in itself. It is not so much a language feature as a way to structure your mind while designing a system
<
Regenaxer>
it is a dynamic feature
<
Regenaxer>
not static
<
Regenaxer>
you defer what a function (here: method)
*does* till runtime
<
Regenaxer>
(msg> Obj)
<
Regenaxer>
what 'msg>' does depends on what 'Obj' is at *runtime*!
<
Regenaxer>
This is a fundanmental feature
<
Regenaxer>
Nothing to do with code/data
<
Regenaxer>
OOP is three things: Polymorphism (the dynamic behavior), Inheritance and Encapsulation
<
razzy>
to be clear: method msg> is something different than messages?
<
Regenaxer>
It is just a term. A message is
*sent* to an object, which triggers the execution of a method
<
Regenaxer>
So a method is a function
<
Regenaxer>
a message is a symbol
<
Regenaxer>
Depending on the object and its (super)classes the method is different for the same message
<
razzy>
thx, i think i am starting to understand.
<
razzy>
about how to use OOP in picolisp
razzy has quit [Ping timeout: 246 seconds]
_whitelogger has joined #picolisp
alexshendi has joined #picolisp
xkapastel has joined #picolisp
alexshendi has quit [Ping timeout: 240 seconds]
<
Regenaxer>
Off topic: I will increase the minSdkVersion of Penti to 23 (Marshmallow)
razzy has joined #picolisp
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
razzy has quit [Ping timeout: 272 seconds]
rain1 has joined #picolisp
razzy has joined #picolisp
razzy has quit [Ping timeout: 246 seconds]
shpx has joined #picolisp
shpx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ubLIX has joined #picolisp
orivej has quit [Ping timeout: 240 seconds]