Anton-4
c93e27ca9a
added List.keep_if_try!
( #7804 )
...
* added keep_if_try!
* cleanup types
* cleanup var name
2025-05-21 14:12:24 -05:00
Anton-4
882577bebc
added map_try! + walk_try! test ( #7770 )
...
* map_try! + walk_try! test
* update mono tests
2025-04-29 22:05:12 +02:00
Lars Frogner
560171c238
Add Num.[f32,f64,dec]_[to,from]_bits
builtins and deprecate Num.[f32,f64]_[to,from]_parts
( #7741 )
...
* Add `Num.[f32,f64,dec]_[to,from]_bits` builtins
* Update mono tests
* Deprecate `Num.[f32,f64]_[to,from]_parts`
2025-04-18 10:10:45 +02:00
Anton-4
1570a3df10
Add Str.len stub ( #7732 )
...
* Add Str.len stub
* mono update
2025-04-09 12:19:34 +02:00
Brendan Hansknecht
a2b4f64c6e
always use atomic refcounting
2025-03-26 20:46:13 -07:00
Brendan Hansknecht
c21cf9b8d6
switch roc to atomic refcounts
2025-03-26 20:38:34 -07:00
Luke Boswell
634dfb1972
don't change the old builtins
2025-03-10 17:14:06 +11:00
Luke Boswell
35cd1e8dd9
fix fuzz crash ty_anno_unexpected_token, handle EOF more gracefully
2025-03-10 09:09:47 +11:00
Jan
68e524e110
snake_case
-ify all remaining camelCase
names in hiding (#7561 )
...
* Snake-case-ify def names in comments
* Snake-case-ify def names in strings
* Snake-case-ify ignored function parameters
* Snake-case-ify test script names, for consistency
* Update CI snapshot to match snake_case
* snake case correction
---------
Co-authored-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-02-05 16:05:03 +01:00
Richard Feldman
3e4a3027e6
Have Str examples not use static dispatch (yet!)
...
This syntax doesn't exist yet, but we can revert this once it does! 😄
Signed-off-by: Richard Feldman <oss@rtfeldman.com>
2025-01-25 14:51:03 -05:00
Richard Feldman
aea54808e5
Clarify some Str docs
...
More minor tweaks to make the examples a bit more obvious.
Signed-off-by: Richard Feldman <oss@rtfeldman.com>
2025-01-25 14:45:41 -05:00
Richard Feldman
e7d80358f4
More Str
docs improvements
...
Noticed a couple more!
Signed-off-by: Richard Feldman <oss@rtfeldman.com>
2025-01-25 14:43:51 -05:00
Richard Feldman
f361117ea5
Tweak some Str
documentation
...
Signed-off-by: Richard Feldman <oss@rtfeldman.com>
2025-01-25 14:39:40 -05:00
Norbert Hajagos
4fd013eee8
remove unnecesarry capacity check within Str equals
2025-01-24 16:23:14 +01:00
Norbert Hajagos
fc0a9ec4cf
add with_ascii_uppercased and caseless_ascii_equals to Str
2025-01-23 15:21:11 +01:00
shua
8146afc860
fix fmt error
2025-01-20 23:12:48 +01:00
shua
6c29d7aa1f
Merge branch 'main' into fromutf-roc
2025-01-20 19:16:38 +01:00
Norbert Hajagos
06640edb63
Use parens, not WSA in tests, add docs linebreaks, factor calls into a var.
2025-01-20 10:58:44 +01:00
Norbert Hajagos
65ec82aa2a
fix failing test for new fn
2025-01-20 10:58:44 +01:00
Norbert Hajagos
41fafc1497
run formatter, change Str.dropPrefix to snake_case in failing test.
2025-01-20 10:58:44 +01:00
Norbert Hajagos
8403f1ea19
with_ascii_lowercased zig builtin
2025-01-20 10:58:41 +01:00
Luke Boswell
c8467b1fe0
Merge pull request #7454 from roc-lang/ayaz/error-on-invalid-generalized-types
...
Restrict usages of type variables in non-generalized contexts
2025-01-20 11:30:52 +11:00
shua
17624a9d2c
Merge branch 'main' into fromutf-roc
2025-01-18 01:58:14 +01:00
Sam Mohr
a292e070d4
Prefer and
and or
for boolean operators
2025-01-17 16:15:31 -08:00
Anthony Bullard
1b43ffa579
Format all lambdas to new syntax
2025-01-16 08:03:44 -06:00
Ian McLerran
297dd0233e
update internal references to Result.map
2025-01-15 19:55:27 -06:00
Ian McLerran
579beab901
Result.map to Result.map_ok
2025-01-15 19:55:26 -06:00
shua
414fecd14d
add fromUtf16 and 32, as well as lossy variants
2025-01-15 00:17:09 +01:00
Brendan Hansknecht
ec8aeaa15a
zig fmt
2025-01-10 20:39:38 -08:00
Brendan Hansknecht
7643f89781
Merge branch 'main' into simplify-refcount
...
Signed-off-by: Brendan Hansknecht <Brendan.Hansknecht@gmail.com>
2025-01-10 20:34:52 -08:00
Sam Mohr
1bb9f7f530
Merge pull request #7498 from HajagosNorbert/dec-to-str
...
remove unused var causing errors in debug tests.
2025-01-10 18:09:21 -08:00
Norbert Hajagos
9689656845
remove unused var causing errors in debug tests.
2025-01-10 21:34:11 +01:00
Ayaz
ee3c71dfe6
Merge branch 'main' into ayaz/error-on-invalid-generalized-types
...
Signed-off-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
2025-01-10 14:36:48 -05:00
Sam Mohr
eb1b5ffa26
Move to new interpolation syntax
2025-01-10 10:29:20 -08:00
Ian McLerran
ab3f39a7c9
Add docs for List.walk_try!
2025-01-09 13:49:33 -06:00
Ian McLerran
ea2a007834
Add List.walk_try!
2025-01-09 11:45:01 -06:00
Ian McLerran
ffa1dd5703
unified formatting for walk
2025-01-09 09:40:59 -06:00
Luke Boswell
d9d2ce83d6
Merge remote-tracking branch 'remote/main' into annotate-type-signatures
2025-01-09 14:21:37 +11:00
Sam Mohr
2150ee2219
Remove Task from Roc
2025-01-08 17:00:40 -08:00
Luke Boswell
37cd04c002
Merge branch 'main' into simplify-refcount
2025-01-09 10:18:00 +11:00
Anthony Bullard
3a6225c354
Fix builtin formatting
2025-01-08 15:20:04 -06:00
Sam Mohr
11b720d355
Fix docs issues
2025-01-07 13:18:58 -08:00
Sam Mohr
7a2f8bfa71
Merge branch 'main' into auto-snake-case
2025-01-07 13:18:41 -08:00
Luke Boswell
8540aa1a14
Merge pull request #7321 from shua/fromutf8
...
DO NOT MERGE update Str.fromUtf8 error type
2025-01-08 07:56:40 +11:00
Timon
716374cfc0
Fixed Issue #6929 Escape unicode when inspecting a Str ( #7411 )
...
* Fixed Issue #6929 Escape unicode when inspecting Str
added AUTHORS
improved comment
* update generated mono tests
* fixed formatting
* fixed merge conflicts
2025-01-06 18:52:50 +01:00
Sam Mohr
f524d35114
Fix module formatting
2025-01-05 21:04:58 -08:00
Sam Mohr
cd0e2a4474
Merge branch 'main' into auto-snake-case
2025-01-05 16:50:24 -08:00
Sam Mohr
1e5b16da36
Fix formatting
2025-01-05 06:39:47 -08:00
Sam Mohr
0edbf16d55
More progress
2025-01-05 05:16:47 -08:00
Sam Mohr
b56fbd38e1
Progress on updating entire compiler for snake_case
2025-01-05 03:48:03 -08:00