StarknetByExample icon indicating copy to clipboard operation
StarknetByExample copied to clipboard

feat: Cairo cheatsheet

Open julio4 opened this issue 1 year ago • 6 comments

Could be a section in chapter 0 with lots of small, concise examples (Similar to Solidity By Example) showing the multiple uses possible of various useful Cairo syntax.

Non-exhaustive list:

  • match
  • loop
  • felt
  • type casting
  • arrays
  • dict

julio4 avatar Oct 20 '23 06:10 julio4

Hi, I'll like to handle this

Nonnyjoe avatar Oct 25 '23 19:10 Nonnyjoe

Thank you very much. Please keep it concise!

julio4 avatar Oct 27 '23 12:10 julio4

Sure I'll do that

Nonnyjoe avatar Oct 27 '23 21:10 Nonnyjoe

#104 introduced cairo cheatsheet We keep this issue open for any further additions

julio4 avatar Oct 31 '23 08:10 julio4

After some discussion in #126, we will make the examples of this part not contracts but only cairo programs. Either hide the contract part with mdbook anchors, or just plain cairo programs.

julio4 avatar Nov 27 '23 04:11 julio4

hey, is there any improvement to do here? I would like to take it

jrmncos avatar Jun 06 '24 03:06 jrmncos