Skip to content

Instantly share code, notes, and snippets.

View jrlemieux's full-sized avatar

Jacques Lemieux jrlemieux

  • CORE Migration
  • Montréal
View GitHub Profile
@jrlemieux
jrlemieux / composite.scala
Created January 24, 2012 21:03
CompositeThrowable inconsistency?
object Test {
def main(args: Array[String]) {
def process(animal: String, n: Int) = {
if (n % 13 == 0 && n > 0)
throw new Exception("My " + animal + " hates number " + n)
n
}
@jrlemieux
jrlemieux / Strange.scala
Created January 23, 2012 21:12
Very strange
object Strange {
def fmt(x: Double) = x.formatted("%.2f")
def run(f: => Any) = {
val n = 100000000L
val start = System.nanoTime
var i = 0L
while (i < n) {
f
package net.strong_links.fawtests
import scala.collection._
import scala.collection.generic._
object testCollections extends App {
import net.strong_links.core._
def fmt(x: Double) = x.formatted("%.2f")