[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Cratera Compiler v1.0.0
- From: Egor Skriptunoff <egor.skriptunoff@...>
- Date: Fri, 2 Aug 2019 00:05:56 +0300
On Thu, Aug 1, 2019 at 4:53 PM Soni "They/Them" L. wrote:
-- example from tests.cratera
From your example it's not clear why this feature is better than usual OOP syntax.
Actually you DO NOT need reference to 'e' inside trait's functions (get, set, size).
You can easily rewrite your program in traditional way by replacing
Could you provide an example to show benefits of traits?
What kinds of tasks traits solve better than conventional 'objects-and-methods' approach?