“Traditional object-oriented modeling is good for many things, but in many ways it deals rather poorly with this setup: it bunches functionality strongly with the data (through encapsulation), and often relies heavily on mutation of that state. It is "behavior-centric" instead of "data-centric". Functional programming languages are often better set up for this: data is immutable (representing information, not state), and is manipulated from the outside, using a freely growable and context-dependent set of functions, rather than a fixed set of built-in virtual methods. Let’s continue being inspired by functional languages, and in particular other languages – F#, Scala, Swift – that aim to mix functional and object-oriented concepts as smoothly as possible.” https://github.com/dotnet/roslyn/issues/98 c# 7 看来可能有大幅度改进。最期待non-nullable reference。
【在 n*w 的大作中提到】 : “Traditional object-oriented modeling is good for many things, but in many : ways it deals rather poorly with this setup: it bunches functionality : strongly with the data (through encapsulation), and often relies heavily on : mutation of that state. It is "behavior-centric" instead of "data-centric". : Functional programming languages are often better set up for this: data is : immutable (representing information, not state), and is manipulated from the : outside, using a freely growable and context-dependent set of functions, : rather than a fixed set of built-in virtual methods. Let’s continue being : inspired by functional languages, and in particular other languages – F#, : Scala, Swift – that aim to mix functional and object-oriented concepts as
because if he takes 3 hours nap at day time, he won't sleep well at night. That's the problem. If he sleeps too much during the day, he either wakes up very early at morning or sleeps very late at night.
sleep,
【在 S********a 的大作中提到】 : why 3hr sleep too much? kids r different ah. some will need that many sleep, : some wont.