Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 17 2018 15:45
    harveywi starred wheaties/TwoTails
  • Sep 08 2018 15:18
    Executioner1939 starred wheaties/TwoTails
  • Sep 03 2018 18:25
    meszka starred wheaties/TwoTails
  • Jul 14 2018 18:42
    barambani starred wheaties/TwoTails
  • Jul 12 2018 01:02

    wheaties on try_something_stupid

    so very close... (compare)

  • Jul 11 2018 13:38

    wheaties on master

    Scala 2.13.0-M4 Merge pull request #33 from xuw… (compare)

  • Jul 11 2018 13:38
    wheaties closed #33
  • Jul 10 2018 07:17
    xuwei-k synchronize #33
  • Jul 09 2018 14:25

    wheaties on master

    use foldLeft instead of /: dep… Merge pull request #32 from xuw… (compare)

  • Jul 09 2018 14:25
    wheaties closed #32
  • Jul 08 2018 14:43
    dungvn3000 starred wheaties/TwoTails
  • Jul 07 2018 00:39
    xuwei-k opened #33
  • Jul 07 2018 00:36
    xuwei-k opened #32
  • Jun 28 2018 21:51
    JordanMartinez starred wheaties/TwoTails
  • Jun 27 2018 21:38
    AesaKamar starred wheaties/TwoTails
  • Jun 21 2018 17:36
    wheaties commented #31
  • Jun 21 2018 17:36

    wheaties on master

    avoid scala.collection.breakOut… Merge pull request #31 from xuw… (compare)

  • Jun 21 2018 17:36
    wheaties closed #31
  • Jun 20 2018 07:40
    xuwei-k synchronize #31
  • Jun 20 2018 03:14
    xuwei-k opened #31
Andy Scott
@andyscott
Heya @wheaties
I noticed you have TwoTails working for 2.12, but it's only published for 2.11. What's holding a 2.12 release back?
Owein Reese
@wheaties
@andyscott me realizing that I hadn't actually published it!
What an oversight. I'll have some time this coming weekend to publish it.
Do you need it before this weekend or can you wait?
Andy Scott
@andyscott
I can wait
Owein Reese
@wheaties
ok
Owein Reese
@wheaties
well, maybe I can sneak in some time somewhere or during a meeting
2.12.0 or 2.12.1?
Andy Scott
@andyscott
That’s compiled on 2.12.
No rush
Owein Reese
@wheaties
which one?
gah, I should just publish both
Andy Scott
@andyscott
Whoops. 2.12.0
I can publish local and test
Also— I have a suggestion for your annotations lib!
Owein Reese
@wheaties
Change the unhelpful message?
but go for it
PRs are also welcome
Andy Scott
@andyscott
    .settings(
      libraryDependencies += compilerPlugin("com.github.wheaties" %% "twotails" % V.twoTails),
      ivyConfigurations   += config("compile-only").hide,
      libraryDependencies += "com.github.wheaties" %% "twotails-annotations" % V.twoTails % "compile-only",
      unmanagedClasspath in Compile ++= update.value.select(configurationFilter("compile-only"))
  )
Recommend adding a new configuration scope to prevent the annotations lib from being included on published jars
Owein Reese
@wheaties
oh interested, didn't know!
SBT is still sometimes quite magical to me
Andy Scott
@andyscott
The annotations are strictly compile only, so there’s no need to include them as a transitive dependency!
SBT is great/terrible/amazing/horrific/magical/...
I can submit a PR for the readme if you’d like
Owein Reese
@wheaties
be my guest
Owein Reese
@wheaties
@andyscott ok, currently publishing a version "0.3.1" for 2.11.6-2.11.8 and 2.12.0-2.12.1. Looks like I had a bug fix in there (I doubt you'd notice it unless you were working on the edge of the universe)
Andy Scott
@andyscott
:smile: thanks
Daniel Gordon
@DanielGGordon
This is so cool!
I've been using Scala for a year at work and at home - and I just saw this now
Owein Reese
@wheaties
Thanks
Andy Scott
@andyscott
FYI I am using two tails successfully in github.com/47deg/case-classy
Owein Reese
@wheaties
sweet
that's great news. I'm glad to hear it.
Daniel Gordon
@DanielGGordon

@wheaties So I finally found a good use case in my code, but I'm not sure if this will work.

Method A has 2x if branches. In one branch it calls itself, in the other branch it calls Method B
Method B has 2x ifbranches. In one branch it calls itself, in the other branch it calls Method A.

Would mutual recursion help in this case? I'd like to know ahead of time because right now my code is just a scala script, and I'd have to refactor it into a project to get the compiler plugin.

Owein Reese
@wheaties
well, if you suspect you'll get a StackOverflow, yes. If you don't and it works as is, I'd leave it.
There's nothing wrong with general recursion on the JVM if you won't hit an overflow
Daniel Gordon
@DanielGGordon
This is a script that runs forever - so StackOverflow is inevitable. I hit it within an 6-8 hours, and I'd like the script to be able to run for a week at a time.
Ok I'll give it a shot.
Daniel Gordon
@DanielGGordon
It worked! I barely had to do any refactoring. It's really great, thanks a lot @wheaties . I hope to find a use case in production one day (this was a personal project).
Owein Reese
@wheaties
Hey, great to hear!
That makes me very happy.
Daniel Gordon
@DanielGGordon
Can you use this for more than 2 methods?
Owein Reese
@wheaties
yeah
k0ala
@k0ala
Nice project -- are you planning to support dotty as well?
Owein Reese
@wheaties
@k0ala When it gets nearer to completion, then I will try to support it.
Matthew Pocock
@drdozer
Hey - are you publishing this on maven.org or do I need to add another repo?