-
-
Notifications
You must be signed in to change notification settings - Fork 4
beauty
Pannous edited this page Sep 22, 2021
·
3 revisions
While beauty is in the eye of the beholder, we believe in a thing such as universal beauty.
ctx.line_to(offset_x, offset_y);
ctx.stroke();
ctx.begin_path();
ctx.move_to(offset_x, offset_y);
can be beautified in Angle as
with context do
line to offset.x offset.y
stroke
begin path
move to offset.x offset.y
end
Can anyone really enjoy all those dots and braces and semicolons .();? How could anyone argue that the first code is more beautiful than the second code?
- In the first example it is immediately clear that the receiving object is ctx/
context