Day 6

July 10, 2017 18:16 UTC Team Serv0101 (Servo) [2017]Subscribe to this teams's activities

Hello everyone!

We started making change in our code. Started writing parsing algorithm
Things we learned:
* enum: It represents data than could be one of the several possible variants.
* use: This declaration can be used so manual scoping isn't needed.
* match: It replaces complicated if/else or it can also be used as C switch.
* match n {
Some(v) =>
None =>
Some and None: When given index is valid, it returns Some with the element under that index, otherwise it returns None.

*tuple: tuple is a overloaded list of fixed size.


You must be logged in to add a comment.