juan_gandhi: (VP)
[personal profile] juan_gandhi
This one works as hoped:
scala> case class MyCase(name: String, value:Int)
defined class MyCase

scala> val factory = MyCase
factory: MyCase.type = MyCase

scala> factory("cool", 42)
res0: MyCase = MyCase(cool,42)

QED.

Which means, we can have a factory.

Date: 2014-08-01 06:46 pm (UTC)
From: [identity profile] freedom_of_sea.livejournal.com
ну а теперь фабрику декораторов фасада!

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

June 2025

S M T W T F S
1 2345 6 7
8 9 10 11 121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 17th, 2025 08:27 pm
Powered by Dreamwidth Studios
OSZAR »