Skip to content
pannous edited this page Nov 14, 2020 · 2 revisions

with accessor keyword

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 ...

Home

Philosophy

data & code blocks

features

inventions

evaluation

keywords

iteration

tasks

examples

todo : bad ideas and open questions

⚠️ specification and progress are out of sync

Clone this wiki locally