雪浸染万千华光钟声塑佛龛
此去蒙尘饮乐宴
朱颜改怎不见窟画昔日璀璨
却醒来作壁上观
@white_rabbit_lovely 你还是和那时一样...笨啊... #黑神话悟空 #黑神 话#壁上观 #紫蛛儿#翻唱 ♬ nhạc nền - 呆小兔🎶🎤0326
雪浸染万千华光钟声塑佛龛
此去蒙尘饮乐宴
朱颜改怎不见窟画昔日璀璨
却醒来作壁上观
@white_rabbit_lovely 你还是和那时一样...笨啊... #黑神话悟空 #黑神 话#壁上观 #紫蛛儿#翻唱 ♬ nhạc nền - 呆小兔🎶🎤0326
" ... had been the only really beautiful thing in her life. Wiping away her own tears she tried to sing what she heard. But her voice was as crude and out of tune as she was. When she heard it she started to cry. It was the first time she'd ever cried, she didn't know she had so much water in her eyes. She cried, blew her nose no longer know what she was crying about. She wasn't crying because of the life she led: because, never having led any other, she'd accepted that with her that was just the way things were. But I also think she was crying because, through the music, she might have guessed there were other ways of feeling, there were more delicate existences and even a certain luxury of soul... The plunge into the vastness of the musical world that didn't need to be understood."
"The second time they met a soft drizzle was falling that soaked them to the bone. Without even holding hands they walked in the rain that on M.'s face looked like flowing tears."
Koka is a function-oriented language where functions and data form the core of the language (in contrast to objects for example). In particular, the expression
s.encode(3)does not select theencodemethod from thestringobject, but it is simply syntactic sugar for the function callencode(s,3)wheresbecomes the first argument. Similarly,c.intconverts a character to an integer by callingint(c)(and both expressions are equivalent). The dot notation is intuïtive and quite convenient to chain multiple calls together, as in:fun showit( s : string ) s.encode(3).count.printlnfor example (where the body desugars as
println(count(encode(s,3)))). An advantage of the dot notation as syntactic sugar for function calls is that it is easy to extend the ‘primitive’ methods of any data type: just write a new function that takes that type as its first argument. In most object-oriented languages one would need to add that method to the class definition itself which is not always possible if such class came as a library for example.
Koka has a small core set of orthogonal, well-studied language features – but each of these is as general and composable as possible, such that we do not need further “special” extensions. Core features include first-class functions, a higher-rank impredicative polymorphic type- and effect system, algebraic data types, and effect handlers.Koka - A Functional Language with Effect Types and Handlers