-
-
Notifications
You must be signed in to change notification settings - Fork 4
with
pannous edited this page Nov 14, 2020
·
2 revisions
The following tasteless rust code
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
stroke
begin path
move to offset.x offset.y
end
The with keyword has the signature
with object block ...