Skip to content

Releases: GrayJack/sugars

2.0.0

06 Sep 03:23
Compare
Choose a tag to compare

Changes

  • Change behavior of the cow! macro
  • Add rwlock! macro to create RwLock types
  • Remove haskell-like and python-like comprehension syntax
  • Add a comprehension macro for lazy iterators: c!
  • Re-implement comprehensions based on the c! macro

v1.2.0

01 May 13:34
Compare
Choose a tag to compare

Changes

  • Add a collection macro for BinaryHeap: bheap!
  • Add a collection macro for VecDeque: deque!

Pretty much add what could be added without huge breaking change that is coming.

STABLE RELEASE!!!!

27 Sep 02:46
Compare
Choose a tag to compare

Changes

Remove nightly requirements for time macro.

v0.5.0

11 Aug 07:28
Compare
Choose a tag to compare

Changes

Add comprehension macros cbtmap and cbtset mostly for completeness
Add macros lkl and flkl that return a LinkedList, the fist pushing to back and the other to the front

v0.4.0

19 Jul 01:06
Compare
Choose a tag to compare

Changes

0.4.0

The macro mutex now return a tuple of Mutex values if 2 or more expression are passed to it
The macro refcell now return a tuple of RefCell values if 2 or more expression are passed to it
The macro cell now return a tuple of Cell values if 2 or more expression are passed to it
The macro arc now return a tuple of Arc values if 2 or more expression are passed to it
The macro rc now return a tuple of Rc values if 2 or more expression are passed to it
The macro boxed now return a tuple of Box values if 2 or more expression are passed to it
Consistency in the cvec macro between 2 and 3 nested versions
Add cell macro to create a smart pointer type Cell
Now time macro supports more than one expression and return a tuple
Now time macro prints the expression that was passed to it

v0.3.0

10 Jul 03:08
Compare
Choose a tag to compare

CHANGELOG

0.3.0

Add a number of macros to create smart pointers: rc!, refcell!, cow!, arc!, mutex!
Move the boxed module to pointers, related to smart pointer
Add a new macro hash that gives back the hash of passed expression (of course, as long the type implements Hash trait)

v0.2.0

30 Jun 06:02
Compare
Choose a tag to compare

Changelog

0.2.0

Implement 3 nested cvec
Implement 2 nested cvec
Improve of cset macro using Iterators methods (doesn't bring a lot of performance improvements, but the code is cleaner)
Macro time now prints to stderr and format the time to 6 digits after the dot
Improve of cmap macro using Iterators methods (doesn't bring a lot of performance improvements, but the code is cleaner)
Improve performance of cvec macro using Iterators methods

v0.1.0

29 Jun 00:27
Compare
Choose a tag to compare

Changelog

Add collections macro hmap, hset, btmap, btset
Add times macro time
Add times macro sleep
Add times macro dur to create Duration
Add macro boxed to create Box
Add comprehension macro cset
Add comprehension macro cmap
Add comprehension macro cvec